Question: 2 . 2 . C Modify the Matlab code used in Example 2 . 7 for the bisection method to incorpo - rate Inputs :

2.2. C Modify the Matlab code used in Example 2.7 for the bisection method to incorpo-
rate
Inputs : f,a,b, TOL, itmax
Stopping criterion : Relative error TOL ork itmax
Consider the following equations defined on the given intervals:
I. 3x-ex=0,[0,1]
II.2xcos(2x)-(x+1)2=0,[-1,0]
For each of the above equations,
(a) Use Maple or Matlab (or something else) to find a very accurate solution in the
interval.
(b) Find the approximate root by using your Matlab with TOL=10?-6 and itmax=10.
(c) Report pn,|p-pn|, and |p-pn-1|, for n1, in a table format.
2 . 2 . C Modify the Matlab code used in Example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!