You are on page 1of 2

Department of Civil Engineering

Indian Institute of Technology Bombay

CE-603 Numerical Methods


September 7, 2020

Homework 3 Solution

(1) Program files: The model program solution consists of three files– a main script file

and two function files. These three program files have been provided separately.

Note that the program files are extensively commented. It is recommended to go

through the comments given in the file. You are encouraged to change parameters in

the program files and notice the behavior of the program and the nature of outputs.

(2) Scatter plot of the function: Error plots.

(3) Comments:

 Convergence in bisection method is much slower than that in Newton's method.

This can be visualized by looking at the slope of the relative error graph in both

cases. Consequently, number of iterations required in Bisection method is larger

than that in Newton's method for same tolerance.

 Roots found by Newton's method is less sensitive to the initial guess whereas results

of Bisection method largely depend on the initial interval guess.

You might also like