In this assignment the letters a, b, c and d will denote the LAST four digits of your student ID number (for example, if you student ID number is 1234567, then a = 4, b = 5, c = 6 and d = 7). To begin, download the le: http://www.math.mcmaster.ca/bprotas/MATH2ZZ3/math2zz3_hw1_data_file.dat which is also available for download on Avenue (under Content) and place it in your current directory. Then, construct a vector-valued function r(t) = [ a f (t), b g (t), c h(t) ] (1)
in which the discrete values of t, f (t), g (t) and h(t) are obtained from the dierent columns of the le as follows t1 t2 ... tN f (t1 ) f (t2 ) ... f (tN ) g (t1 ) g (t2 ) ... g (tN ) h(t1 ) h(t2 ) ... h(tN ).
1. Plot the curve C dened by the function r(ti ), i = 1, . . . , N , in 3D space using the command plot3 with LineWidth equal to 2. This plot should appear as figure(1). (2 points) 2. With curve C given above, compute the corresponding unit tangent vectors T(ti ), unit normal vectors N(ti ), binormal vectors B(ti ), and plot them along curve C in figure(1) using function quiver3 for ti = 1, 201, 401, . . . . The derivatives required to compute the dierent vectors can be approximated with the forward-dierence formula, i.e., r (ti ) [r(ti+1 ) r(ti )] /(ti+1 ti ), i = 1, . . . , N 1, etc. Please note that, even though the vectors T(ti ), N(ti ) and B(ti ) have all unit length, they may actually appear to have dierent lengths when plotted with function quiver3. (5 points) 3. Compute the curvature of curve C and plot it as a function of t in figure(2). (1 point) 4. Approximating the integral with a nite sum, compute the approximate length of the curve C , and save this results in variable Answer1. (2 points)