Question: Develop a MATLAB function which estimates the root of a given function utilizing false position. Your function should have the following: Inputs: Inputs: func -
Develop a MATLAB function which estimates the root of a given function utilizing false position. Your function should have the following:
Inputs:
Inputs:
func - the function being evaluated
xl- the lower guess
xu- the upper guess
es - the desired relative error (should default to 0.0001%)
maxit - the maximum number of iterations to use (should default to 200)
varargin, . . . - any additional parameters used by the function
Outputs:
root - the estimated root location
fx - the function evaluated at the root location
ea - the approximate relative error (%)
iter - how many iterations were performed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
