Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

BEIRUT ARAB UNIVERSITY

FACULTY OF SCIENCE
MATHEMATICS & COMPUTER SCIENCE DEPARTEMENT
Math 348, Numerical Methods

Answer all questions. Time 2 hours


This is a Graded Take Home Quiz
ONLY solutions uploaded on Moodle will be graded.
Solutions should be uploaded as PDF file and not as images.
Submit your solutions before the system is CLOSED.
Zoom meeting will be conducted next week to discuss your solutions.

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

4. (10 Points) Given the following data points


X 1 3 4 5 6 7
f(x) 0 1.1 1.4 1.6 1.8 1.9
Evaluate the integral of f(x) from 1 to 7 using a combination of Simpson’s 1/3 rule and trapezoidal rule.
Employ Simpson’s 1/3 rule whenever possible to obtain the highest accuracy.

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 𝑆(𝑥)𝑑𝑥.

You might also like