You are on page 1of 3

MATH 351 Numerical Methods

Assignment 1: Implementation Bisection, Newton, Fixed Point and Secant Methods on


MATLAB
Due Date: October 17, 2022 1700 Hrs
Email your assignment document at mnouman@scme.nust.edu.pk (Hard copies will not be accepted)

Problem 1 Make an m…le for the Bisection, Newton, Secant, False Position Methods on MATLAB
and use it to approximate roots of following problems with given tolerance.

1 x cos(x) = 0 : [0; 1] ; tolerance = 10 3 ; 10 5 ; 10 8


2
2 x 4x + 4 ln(x) = 0 : [1; 2] ; tolerance = 10 3 ; 10 5 ; 10 8
3 ex + 2 x + 2 cos (x) 6 = 0 : [1; 2]; tolerance = 10 3 ; 10 5 ; 10 8 :

You have to make a Pdf document in the following order:


1- M File
2- Each question output with command fprintf and decimal places of solution should be one greater than
the tolerance level. (For example solution will be displayed 0.7391 for accuracy of 10 3 )
3- Graph : Number of Iterations vs Sequence of solution. (Sample graph is given below)

Problem 2 Molar Volume and Compressibility Factor from van der Waals Equation. Taken from,
Cutlip, Michael B., et al. "A collection of 10 numerical problems in chemical engineering solved by various
mathematical software packages." Computer Applications in Engineering Education 6.3 (1998): 169-180.

1
2
3

You might also like