Docsity

Final Exam for Numerical Methods | CS 3414, Exams of Computer Science

Toggle sidebar
bg1
CS/MATH 3414 Final Exam
(please fill in the following information)
Name:
ID:
1. (2 points) In one sentence, state a connection between something you learned in the numer-
ical integration chapter and something you learned in the splines chapter.
2. (2 points) What does the following functional iteration compute?
xn+1 =xn(2 −xnR)
3. (2 points) After you have solved the previous problem, establish the above functional it-
eration by applying Newton’s method (of solving non-linear equations) to some equation
f(x) = 0. State your f(x) for full credit.
4. (2 points) It is suspected that the data: y(−2) = 1, y(−1) = 4, y(0) = 11, y(1) = 16,
y(2) = 13, y(3) = −4, comes from a cubic polynomial. Prove or disprove this.
pf3
pf4
pf5

Partial preview of the text

Download Final Exam for Numerical Methods | CS 3414 and more Exams Computer Science in PDF only on Docsity!

CS/MATH 3414 Final Exam (please fill in the following information)

Name:

ID:

  1. (2 points) In one sentence, state a connection between something you learned in the numer- ical integration chapter and something you learned in the splines chapter.
  2. (2 points) What does the following functional iteration compute?

xn+1 = xn(2 − xnR)

  1. (2 points) After you have solved the previous problem, establish the above functional it- eration by applying Newton’s method (of solving non-linear equations) to some equation f (x) = 0. State your f (x) for full credit.
  2. (2 points) It is suspected that the data: y(−2) = 1, y(−1) = 4, y(0) = 11, y(1) = 16, y(2) = 13, y(3) = −4, comes from a cubic polynomial. Prove or disprove this.
  1. (2 points) Find two different quadratic spline interpolant fits to the following data: f (1/2) = 0, f (1) = 1, f (2) = 2.
  2. (2 points) Consider a problem with three data points given, just as above (but not the same values as above). Is it possible to have - the quadratic interpolating polynomial, - a quadratic spline fit, and - the least-squares quadratic polynomial fit

to be the same function? Under what conditions will this happen?

  1. (2 points) By the method of undetermined coefficients, derive a numerical integration for- mula of the form (^) ∫ + − 1

f (x)dx ≈ Af (−

√ 1 3

) + Bf (

√ 1 3

that is exact for polynomials of as high a degree as possible, i.e., determine A and B. Then, use the integration rule to compute ∫ (^) π/ 2

0

sin(t)dt

Is the value computed by your integration rule exact (for this integral)?

  1. (2 points) For the differential equation x′^ = t(x^3 − 6 x^2 +15x), determine whether the solution curves diverge from one another as t → ∞.
  2. (2 points) Convert to a first-order system, the following system of equations:

x′′^ + x(x^2 + y^2 )−^3 /^2 = 0 y′′^ + y(x^2 + y^2 )−^3 /^2 = 0

with initial conditions x(0) = 0.5, x′(0) = 0.75, y(0) = 0.25, and y′(0) = 1.0.

  1. (3 points) State in English two ways in which we can fit a function of the form y = ecx^ to the data: x(0) = a, x(1) = b. Then, actually find such a function using one of the ways.