Docsity

Final Exam - Computational Methods | AMSC 460, Exams of Mathematics

Partial preview of the text

Download Final Exam - Computational Methods | AMSC 460 and more Exams Mathematics in PDF only on Docsity!

Sane AMSC/CMSC 460 H. M. Glaz FINAL EXAM Friday, December 17, 2004 1:30 — 3:30 PM Instructions: YOU MUST start each problem on a new page. Make sure that you show your work, including intermediate results. Bic. are not important. Concentrate on making it clear that you know how to imploment the algorithm in code, given enough time. If need be, use some pseudocode mixed in to make your point. important: It is not likely that anyone will do all the problems. There are (25 + 20 + 40 + 50 + 75 + 75 +75) 360 possible points, plus two (2) Extra Credit parts. You should assume that I will set a maximum (i.e., perfect) score of 250 points, but that the grading will be fairly rigorous (I am keeping open the possibility of moving this +/- 25 points). You may try all problems if you wish, but I advise otherwise. (new) Honor Pledge: I pledge on my honor that I have not given or received any unauthorized assista ‘Matlab code’ means something fairly close to working code in the easier situations, but syntax rule ou this examination. You MUST write this out in full and sign it on the Ist page. (1) (25 pts) Suppose that (i) you sample a function y(¢) at distinct times resulting in the data (th, ye), B= 1,... 8: (ii) that you are told to model the function y(t) by a cubic polynomial derived from a least squares fit to the data; and (iii) the coefficients a of the polynomial are to be calculated via the Matlab expression @= A\b. a (a} (23 pts) Write down the matrix A and the vector b that make this work, {b) (2 pts) How docs Matlab obtain the answer? (2) (20 pts) Let 4 cap(a)der. I [ exp(a)de Obtain approximate solutions for the value of £ by using the compound trapezoid rule with (a) (10 pts) 2 panels (equally spaced) , (b) (10 pts) 4 panels (equally spaced) . Note: it is not necessary to evaluate exponentials or actually perform the summa- tions. Put away your calculators for this problem. {3) (40 pts) Let ay(x ~ 4)? + ao(2 — 3)° 4 asl s(z) = ¢ byl — 4)? + bola — 4)? + by(a — 4)4, B