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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started