Assignment NA

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

Salim Habib University

Department of Biomedical Engineering


Numerical Analysis
Spring 2022 MTH-302
Assignment # 1

Question # CLO Taxonomy Level PLO


1-7 1 3 1
8-9 3 4 2
10 2 2 2

Q1 a. Sketch the graphs of𝑦 = 𝑥 𝑎𝑛𝑑 𝑦 = 2𝑠𝑖𝑛𝑥

b. Use the Bisection method to find an approximation to within 10−5 to the first positive value of x with
𝑥 = 𝑠𝑖𝑛2𝑥
𝑥
Q2. The function 𝑓(𝑥) = 2𝑠𝑖𝑛𝑥 − 𝑒 4 − 1 is zero for two values near 𝑥 = −5. Use bisection to find both,
starting with [−7, −5] and [−5, −3]. How many iterations are needed to get results that agree to five
significant figures?
Q3. Repeat Q2 but use the secant method. How many fewer iterations are required?
Q4. Repeat Q2 but now use false position method. Compare the number of iterations with Q2 and Q3

Q5. The quadratic (𝑥 − 0.3)(𝑥 − 0.5) obviously has zeros at 0.3 and 0.5
a. Why is the interval[0.1 , 0.6] not a satisfactory starting interval for bisection?
b. What are good starting intervals for each root?
c. If you start with [0, 0.49] which root is reached with bisection?
Which root from [0.31, 1.0]?
𝑥2
Q6. The function 𝑓(𝑥) = 4𝑥 3 − 1 − exp ( 2 ) has values of zero near𝑥 = 1𝑎𝑛𝑑 𝑥 = 3

a. What is the derivative of 𝑓?


b. If you begin Newton's method at x = 2, which root is reached? How many iterations to achieve an error
less than 10−5 ?
c. Begin Newton's method at another starting point to get the other zero.
d. For both parts (b) and (c), tabulate the number of correct digits at each iteration

Q7. 𝑓(𝑥) = (𝑥 − 1)2 (𝑥 + 1) obviously has roots at + 1 and - 1. Using starting values that differ from the
roots by 0.2, compare the number of repetitions of Newton's method to reach the roots within 0.0001.
explain the difference.
Salim Habib University
Department of Biomedical Engineering
Numerical Analysis
Spring 2022 MTH-302
Assignment # 1
Q8. A particle starts at rest on a smooth inclined plane whose angle 𝜃 is changing at a constant rate
𝑑𝜃
=𝑤<0
𝑑𝑡
At the end of t seconds, the position of the object is given by

𝑔 𝑒 𝑤𝑡 − 𝑒 −𝑤𝑡
𝑥(𝑡) = − ( − sin 𝑤𝑡)
2𝑤 2 2

Suppose the particle has moved 1.7 ft in 1 second. Find, to within 10−5 , the rate 𝑤 at which 𝜃 changes.

Assume that 𝑔 = 32.17 𝑓𝑡/𝑠 2


Q9. A trough of length L has a cross section in the shape of a semicircle with radius r. (see the
accompanying figure). When filled with water to within a distance h of the top, the volume V of water is
1

𝑉 = 𝐿[0.5 𝜋𝑟 2 − 𝑟 2 𝑎𝑟𝑐 sin ( 𝑟 ) − ℎ(𝑟 2 − ℎ2 )2 ]

Q10.
a) Provide several real-life examples of catastrophic errors that have occurred from the use of finite
digital arithmetic and explain what went wrong.
b) Discuss the various different ways to round numbers.
c) Discuss the difference between a number written in standard notation and one that is written in
normalized decimal floating-point form. Provide several examples.
d) Is the Bisection method sensitive to the starting value? Why or why not?

You might also like