Download 6 Problems in Final Exam - Computational Methods | AMSC 460 and more Exams Mathematics in PDF only on Docsity!
AMSC/CMSC 460 Dr. Wolfe FINAL EXAM May 18, 2002 1. (15 points) (a} Compute 1—cosz lim z 230 x (b) Let g(x) = tegsz, Write a MATLAB script which produces a column vector z of length 10 whose i** component is g(107*). (c) Here is the result of running the script produced in part (ii): 0.49958347219743 0.49999583334737 0.49999995832550 0.49999999696126 0.50000004137019 0.50004445029117 0.49960036108132 0 0 0 How do you account for this result ? 2. (15 points) (a) Find the LU factorization of 2 -1 3 A=[-l] -2 1]. 1 1 2 (b) Use the factorization to solve Ax = b where b = (1,2,3)?. 3. (15 points) (a) Find the weights wp and w; and the node x, such that the integration rule A I= [ f(a) de~unf(0) terf(es) =@ 0 is exact for all quadratic polynomials. (b) Is the above rule exact for cubics ? (c) Given that the error of the rule is of the form e=I-Q=cf(Cjav? for smooth f, where 0 < ¢ < A, find the integer d and the constant c.