Question: Function apprRoot = myFalsePosition(func, x1, x2, tol)% func = functions handle% x1= initial guess xleft, x2= initial guess xright, tol = toleranceExample run:>> func =
Function apprRoot = myFalsePosition(func, x1, x2, tol)% func = functions handle% x1= initial guess xleft, x2= initial guess xright, tol = toleranceExample run:>> func = @(x) x^2+2*x -3;>> myFalsePosition(func,0.5,2,0.2) ans =0.9773
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
