Assignment NA
Assignment NA
Assignment NA
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
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.
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?