0% found this document useful (0 votes)
55 views10 pages

Midterm Exam 20220306

This document contains a midterm exam for a numerical methods course. It includes 10 multiple choice questions testing various numerical methods like bisection, Newton's method, cubic spline interpolation, and Lagrange interpolation. For each question, it provides sample functions and intervals for students to apply the relevant method to find roots, derivative approximations, or function approximations. It also includes spaces for students to show their work and write their answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views10 pages

Midterm Exam 20220306

This document contains a midterm exam for a numerical methods course. It includes 10 multiple choice questions testing various numerical methods like bisection, Newton's method, cubic spline interpolation, and Lagrange interpolation. For each question, it provides sample functions and intervals for students to apply the relevant method to find roots, derivative approximations, or function approximations. It also includes spaces for students to show their work and write their answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

NUMERICAL METHODS – 2022 MIDTERM-EXAM

Your full name: Hoàng Minh Đạt

Your order number (in the list of the group P01): 50

Your ID student number: 1710939

Date: March 6, 2022

Note: The results in your answers/solutions below must be given in decimal number form, rounded to 2
floating digits.

-----------------------------------------------------------------

QUESTION 1:

1.1 (for students with order numbers from 1-5) a) Show that the equation  2.21(cosx)
+6.17x−3.45=0 has a root in [a,b]=[−0.1,0.5].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

 1.2  (for students with order numbers from 6-9) a) Show that the equation   2.1(cosx)
−0.6x−0.35=0 has a root in [a,b]=[−2.1,−1.8].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.3   (for students with order numbers from 10-13) a) Show that the equation   2.53(cosx)
+0.48x+1.74=0 has a root in [a,b]=[−2,−1.8].
Use bisection method on this interval with  x0=(a+b)/2
b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.4 (for students with order numbers from 14-17)  a) Show that the equation   3.74(cosx)
+8.63x−5.38=0 has a root in [a,b]=[−0.2,0.6].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.5 (for students with order numbers from 18-21) a) Show that the equation   3.51(cosx)
+3.99x−6.19=0 has a root in [a,b]=[1,1.8].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.6  (for students with order numbers from 22-25) a) Show that the equation   3.74(cosx)
+4.67x+8.11=0 has a root in [a,b]=[−1.9,−1.4].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.7 (for students with order numbers from 26-29)   a) Show that the equation   3.57(cosx)
−3.93x−5.62=0 has a root in [a,b]=[−1.1,−0.5].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.8  (for students with order numbers from 30-33) a) Show that the equation   3.57(cosx)
−3.93x−5.62=0 has a root in [a,b]=[−1.1,−0.5].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.9  (for students with order numbers from 34-37) a) Show that the equation   3.57⋅(cosx)
−3.93x−5.62=0 has a root in [a,b]=[−1.1,−0.5].

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
x4 ≈    
c) to estimate the absolute error of the above solution
Absolute error ≈  

1.10  (for students with order numbers from 38-51) a) Show that the equation   3.57(cosx)
−3.93x−5.62=0 has a root in [a,b]=[−1.1,−0.5].
f(-1.1)=0.32 ; f(-0.5)= -0.52
 f(-0,5)<f(-1.1)
with -1.1<x<-0.5, for which f(x)=0
f(x) has at least one solution in [-1.1;-0.5]

Use bisection method on this interval with  x0=(a+b)/2


b) to find x4  
-6.45
x4 ≈    
c) to estimate the absolute error of the above solution
-3.11
Absolute error ≈  

QUESTION 2:

2.1 (for students with order numbers from 1-5) Given the equation
f(x)=1.9⋅ +2.1⋅ −9.7=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

           Δx2≈ 

2.2 (for students with order numbers from 6-9) Given the equation
f(x)=1.9⋅ +2.2⋅ −8.8=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

             Δx2≈ 

2.3 (for students with order numbers from 10-13) Given the equation
f(x)=1.6⋅ +2.4⋅ −8.9=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

          Δx2≈ 
2.4 (for students with order numbers from 14-17) Given the equation
f(x)=1.2⋅ +2.4⋅ −8.8=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

              Δx2≈ 

2.5 (for students with order numbers from 18-21) Given the equation
f(x)=1.4⋅ +2.7⋅ −9.2=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

             Δx2≈ 

2.6 (for students with order numbers from 22-25) Given the equation
f(x)=1.2⋅ +2.9⋅ −9.6=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

             Δx2≈ 

2.7 (for students with order numbers from 26-29) Given the equation
f(x)=1.6⋅ +2.3⋅ −9.3=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

              Δx2≈ 
2.8 (for students with order numbers from 30-33) Given the equation
f(x)=1.9⋅ +2.8⋅ −9.7=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

             Δx2≈ 

2.9 (for students with order numbers from 34-37) Given the equation
f(x)=1.1⋅ +2.1⋅ −8.6=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

Answer:   x2≈ 

             Δx2≈ 

2.10 (for students with order numbers from 38-51) Given the equation
f(x)=1.7⋅ +2.7⋅ −8.1=0
in the root-isolated interval [1,2]. Use the Newton method with x0=2 to find x2 and its
absolute error Δx2.

1.31
Answer:   x2≈ 
0.03
             Δx2≈ 

QUESTION 3

3.1 (for students with order numbers from 1-5) Given the following table of the
function y=f(x):

xk 1.2 1.7 2.4


yk 3.3 3.04 4.04
Use the natural cubic spline to approximate the values of f(x) at x=1.58 and x=2.14.

Answer: f(1.58)≈ 

             f(2.14)≈ 

3.2 (for students with order numbers from 6-9) Given the following table of the
function y=f(x):

xk 1.2 1.8 2.5


yk 2.7 3.04 4.18

Use the natural cubic spline to approximate the values of f(x) at x=1.55 and x=2.03.

Answer: f(1.55)≈ 

             f(2.03)≈ 

3.3 (for students with order numbers from 10-13) Given the following table of the
function y=f(x):

xk 1.3 1.8 2.3


yk 3.78 2.39 3.2

Use the natural cubic spline to approximate the values of f(x) at x=1.53 and x=1.93.

Answer: f(1.53)≈ 

             f(1.93)≈ 

3.4 (for students with order numbers from 14-17) Given the following table of the
function y=f(x):

xk 1.3 1.6 2.4


yk 4.38 2.52 4.18
Use the natural cubic spline to approximate the values of f(x) at x=1.48 and x=2.09.

Answer: f(1.48)≈ 

             f(2.09)≈ 

3.5 (for students with order numbers from 18-21) Given the following table of the
function y=f(x):

xk 1.2 1.7 2.2


yk 2.94 2.52 4.32

Use the natural cubic spline to approximate the values of f(x) at x=1.38 and x=1.99.

Answer: f(1.38)≈ 

             f(1.99)≈ 

3.6 (for students with order numbers from 22-25) Given the following table of the
function y=f(x):

xk 1.1 1.7 2.3


yk 3.18 2 3.34

Use the natural cubic spline to approximate the values of f(x) at x=1.39 and x=2.16.

Answer: f(1.39)≈ 

             f(2.16)≈ 

3.7 (for students with order numbers from 26-29) Given the following table of the
function y=f(x):

xk 1.2 1.7 2.2


yk 4.02 2.13 3.9
Use the natural cubic spline to approximate the values of f(x)f(x) at x=1.49 and x=1.85.

Answer: f(1.49)≈ 

             f(1.85)≈ 

3.8 (for students with order numbers from 30-33) Given the following table of the
function y=f(x):

xk 1.3 1.7 2.5


yk 3.54 3.04 3.2

Use the natural cubic spline to approximate the values of f(x) at x=1.55 and x=2.04.

Answer: f(1.55)≈ 

             f(2.04)≈ 

3.9 (for students with order numbers from 34-37) Given the following table of the
function y=f(x):

xk 1.2 1.8 2.4


yk 3.18 2.52 3.48

Use the natural cubic spline to approximate the values of f(x) at x=1.41 and x=2.28.

Answer: f(1.41)≈ 

             f(2.28)≈ 

3.10 (for students with order numbers from 38-51) Given the following table of the
function y=f(x):

xk 1.1 1.7 2.3


yk 4.02 2.26 3.62
Use the natural cubic spline to approximate the values of f(x) at x=1.22 and x=1.88.

3.52
Answer: f(1.22)≈ 
2.39
             f(1.88)≈ 

QUESTION 4:

Use appropriate Lagrange interpolating polynomials of degree three to approximate

a. (for students with order numbers from 1-16) f (8.4) if f (8.1) = 16.94410, f (8.3) =
17.56492, f (8.6) = 18.50515, f (8.7) = 18.82091

b. (for students with order numbers from 17-28) f(−1 3) if f (−0.75) = −0.07181250, f (−0.5) =
−0.02475000, f (−0.25) = 0.33493750, f (0) = 1.10100000

c. (for students with order numbers from 29-41) f (0.25) if f (0.1) = 0.62049958, f (0.2) =
−0.28398668, f (0.3) = 0.00660095, f (0.4) = 0.24842440

d. (for students with order numbers from 42-51) f (0.9) if f (0.6) = −0.17694460, f (0.7) =
0.01375227, f (0.8) = 0.22363362, f (1.0) = 0.65809197

p3(x) = 0.44

You might also like