0% found this document useful (0 votes)
29 views

Assignment Matlab

The document compares the bisection and Newton-Raphson methods for finding roots of equations. It finds roots using both manual calculations and Matlab, and the results match closely. The bisection method converges more slowly as it requires more iterations. The Newton-Raphson method converges much more quickly with fewer iterations needed. Flowcharts are also provided for both the bisection and Newton-Raphson methods.

Uploaded by

adil abid
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Assignment Matlab

The document compares the bisection and Newton-Raphson methods for finding roots of equations. It finds roots using both manual calculations and Matlab, and the results match closely. The bisection method converges more slowly as it requires more iterations. The Newton-Raphson method converges much more quickly with fewer iterations needed. Flowcharts are also provided for both the bisection and Newton-Raphson methods.

Uploaded by

adil abid
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Q1: Bisection Method

Q1: Newton Raphson Method


Q2:
Q2:

Matlab Result
Q3:
Q3: Matlab Result

Q4:

The results for the roots have been found using manual hand calculation and using Matlab. The

values for the root is found to given tolerance. The bisection method has slow convergence to

the solution since the number of iteration increases to obtain the solution. on the other hand,

the newton Raphson method converges to the solution very quickly.

The bisection method is dependent upon the initial and final guess values, if the difference is

greater the number of iterations will increase for the solution to converge. For the newton

Raphson method, the solution converges with fewer iterations.

The results from the hand solution and the Matlab are very close which validates the results.
Q5:

Flow Chart for Bisection Method


Newton Raphson Flowchart

You might also like