0% found this document useful (0 votes)
63 views2 pages

Assignment 1

This document contains instructions for Assignment 1 of a Numerical Methods course. It provides 5 questions to solve using different root finding algorithms like bisection method, secant method, and Newton-Raphson method. The student is asked to find roots of various functions and write MATLAB code to solve some of the problems numerically to higher precision and calculate errors.

Uploaded by

mtalhaawais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views2 pages

Assignment 1

This document contains instructions for Assignment 1 of a Numerical Methods course. It provides 5 questions to solve using different root finding algorithms like bisection method, secant method, and Newton-Raphson method. The student is asked to find roots of various functions and write MATLAB code to solve some of the problems numerically to higher precision and calculate errors.

Uploaded by

mtalhaawais
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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