0% found this document useful (0 votes)
5 views13 pages

Midterm Exam 20211022

toán
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)
5 views13 pages

Midterm Exam 20211022

toán
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/ 13

NUMERICAL METHODS – 2021-2022 MIDTERM-EXAM

Your full name:Đặng Trần Anh Duy

Your order number (in the list of the group CC01):6

Your ID student number:1952028

Date: October 23, 2021

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 2-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 ≈ -2.04375
c) to estimate the absolute error of the above solution
Absolute error ≈ 0.0618988

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-41) 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 ≈

QUESTION 2:

2.1(for students with order numbers from 2-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 ≈ 1.371008

Δx2≈ 0.0139471

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-41) 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.

Answer: x2≈

Δx2≈

QUESTION 3

3.1 (for students with order numbers from 2-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-41) 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.

Answer: f(1.22)≈

f(1.88)≈

QUESTION 4:

4.1 (for students with order numbers from 2-5) Use the Simpson formula to
approximate the following integral

I=

with the number of subintervals n=8.

Answer: I =

4.2 (for students with order numbers from 6-9) Use the Simpson formula to
approximate the following integral

I=

with the number of subintervals n=6.

Answer: I =

4.3 (for students with order numbers from 10-13) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=8.

Answer: I =

4.4 (for students with order numbers from 14-17) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=8.

Answer: I =

4.5 (for students with order numbers from 18-21) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=4.

Answer: I=

4.6 (for students with order numbers from 22-25) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=4.

Answer: I =

4.7 (for students with order numbers from 26-29) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=4.

Answer: I =

4.8 (for students with order numbers from 30-33) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=6.

Answer: I =

4.9 (for students with order numbers from 34-37) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=4.

Answer: I =

4.10 (for students with order numbers from 38-41) Use the Simpson formula to
approximate the following integral

I=
with the number of subintervals n=6.

Answer: I =

You might also like