Professional Documents
Culture Documents
Quiz Numerical PDF
Quiz Numerical PDF
FACULTY OF SCIENCE
MATHEMATICS & COMPUTER SCIENCE DEPARTEMENT
Math 348, Numerical Methods
1. (10 Points) Use quadratic splines to find the second order polynomial f2(x) in the interval [ 1 , 1.5 ] and
use the derivative of this polynomial to estimate f’(1.5).
2. (10 Points) Calculate the integral of the function f(x) = sin(x)/x from 0 to 5 using a multiple
application of the trapezoidal rule with 5 segments. Note that f(0) is 1 and that x is in radians.
3. (10 Points) Find two estimates I h and I h / 2 of the integral I of the function f(x) = exp(x2) – 2sin(x/3) – 6
between x = –1.5 and x = 1.5 using the trapezoidal rule and with first a step size of 3 and second a step size of
4 1
1.5, then use I h / 2 − I h to approximate I.
3 3
1 2
5. (10 Points) Use Romberg integration to an approximation to ∫0 𝑒 −𝑥 𝑑𝑥 by calculating R3,3.
Find the approximate error.
6. (20 Points) a) (12Pts.) Find the free cubic spline S(x) that interpolates the points x0 = 0, x1
=0.05, and x2 = 0.1 for the function 𝑒 2𝑥 .(To find the value of y at each point replace it in
𝑒 2𝑥 ).
b) (4Pts.) Compare the value of S( 0.02), and f( 0.02).
0.1 0.1
c) (4Pts.) Find an approximation to of ∫0 𝑓(𝑥)𝑑𝑥 by evaluating ∫0 𝑆(𝑥)𝑑𝑥.