Question: a. What is func in this function? Provide description and how func would be entered. b. What is es? Provide definition. How can you calculate

a. What is func in this function? Provide description and how func would be entered.

b. What is es? Provide definition. How can you calculate an es if you want n number of significant digits in your final answer? c. Why is iter=iter+1 being used? d. What is ea? e. When does the while loop stop?

a. What is func in this function? Provide description and how func

would be entered. b. What is es? Provide definition. How can you

function [root,fx,ea,iter]-bisect (func,xl,xu,es,maxit,varargin) % bisect: root location zeroes [root, fx, ea, iter] =bisect (func , xl , xu, es, maxit, p1,p2, . . . ) : uses bisection method to find the root of func % input: func = name of function xl, xu lower and upper guesses % es desired relative error (default = 0.0001%) maxit maximum allowable iterations (default = 50) % pl,p2, . . .additional parameters used by func output: rot real root fxfunction value at root ea = approximate relative error (%) % iter= number of iterations if nargin0,error ('no sign change', end if nargin

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 Databases Questions!