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

Numerical Methods

Catalogue Code: BS 337

Assignment No. 1
Date of Submission: __________

Date: 25/10/2011

Please submit direct to Dr A Aziz, using the cover provided.


Do not use bindings or covers that make the completed coursework rigid or
bigger than A4.

Degree: __________________________________
Syndicate: ________________________________
Registration: ______________________________
NAME: ___________________________________

Declaration
I declare that the attached coursework is entirely my own work.

Signed .........................................................................................................

Date .............................................................................................................

For the attention of Dr A Aziz, College of Electrical and Mechanical Engineering


Note: Attach hard copy of Matlab code and print result and error after each
iteration.

x
Q. 1: The single positive zero of the function f ( x) = x tanh( ) - 1 models the wave
2
number of the water wave at a certain frequency in water of depth 0.5 (donot worry about
the units here).
a) Find two points which bracket the zero of f (x)
b) Use the Bisection Method to approximate the zero of f (x) to four decimal places
c) Wirte a Matlab code for the Bisection Method and approximate the zero of f (x) to
six decimal places. Find the error in your answer.
Q. 2: Approximate
1

a) x = (13) 3 to three decimal places by applying bisection method.


b) Wirte a Matlab code for the Bisection Method and approximate the zero of f (x)
to six decimal places. Find the error in your answer.
Q. 3: Use the Secant Method to find a root of the function f (t ) = cos t + 2 sin t + t 2
Q. 4: Consider a simple electronic circuit with an input voltage of 2.0 V, a resister of
resistence of 1000 and a diode. It can be shown that the voltage across the diode can be
x 2-x
found as the single positive zero of f ( x) = 1 10 -14 exp
.
0.026 1000
a) Use Newton-Raphson method to approximate the zero of f (x) , taking initial
value of x0 = 0.75
b) Wirte a Matlab code for the Newtons Method and approximate the zero of f (x)
to six decimal places. Find the error in your answer.
Q. 5: Use Newton-Raphson Method to approximate
a) a root of sin x = 1 - x upto four places of decimal
b) Wirte a Matlab code for the Newtons Method and approximate the zero of f (x)
to six decimal places. Find the error in your answer.

You might also like