Você está na página 1de 2

Engineering Mathematics IV (MATH 2ZZ3) Winter 2014

HOMEWORK #1: VECTOR FUNCTIONS


Due: by 11:59pm on Wednesday, January 22
Instructions: The assignment consists of four questions worth, respectively, 2, 5, 1, and 2 points. Upload your assignment using the online submission system accessible through the web address provided on Avenue (you can log in using your MacID and then follow the instructions). Please note that: you can submit your Matlab assignment a maximum of 5 times and only your most recent submission will be marked, the le submitted must have extension .m, a conrmation Email will be sent to your McMaster Email address and to any other address you provide during submission; please check this message to make sure the correct le has been submitted; you must keep this conrmation Email for the remainder of the term. It is obligatory to use the MATLAB template le specic to the current assignment and available at http://www.math.mcmaster.ca/bprotas/MATH2ZZ3/template1.m; submissions non compliant with this template will not be accepted. Make sure to enter your name and student I.D. number in the appropriate section of the template. Late submissions and submissions which do not comply with these guidelines will not be accepted. All graphs should contain suitable titles and legends. DO NOT COPY ANY CODE, OR PROVIDE CODE TO BE COPIED. Doing so is an act of academic dishonesty, and students found copying each others code will be charged with academic dishonesty in accordance with the university policies. Academic dishonesty can result in serious consequences such as, e.g., the grade of zero on an assignment, loss of credit with a notation on the transcript (notation reads: Grade of F assigned for academic dishonesty), and/or suspension or expulsion from the University. ANY copying of code will be treated as an act of academic dishonesty in accordance with University policies. For each assignment, every student is to enter his/her own new computer code into the assignment template. Reference: 1. Numerical Mathematics by M. Grasselli and D. Pelinovsky (Jones and Bartlett, 2008), sections 7.47.4. 2. Advanced Engineering Mathematics by D. G. Zill and W. S. Wright (Jones and Bartlett, 5th edition), sections 9.19.3

Engineering Mathematics IV (MATH 2ZZ3) Winter 2014

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)

Você também pode gostar