Question: Write a MATLAB user-defined function that solves a non-linear equation of the form (f(x) = 0) with the modified regula falsi method. b. Write a

Write a MATLAB user-defined function that solves a non-linear equation of the form (f(x) = 0) with the modified regula falsi method.Write a MATLAB user-defined function that solves a non-linear equation of the

b. Write a MATLAB user-defined function that solves a non-linear equation of the form (f(x) = 0) with the modified regula falsi method. The program should check if the endpoints stay the same; if an endpoint is unchanged in three iterations, the value of the function at that point should be divided by 2. If the same endpoint is unchanged for three more iterations, the value of the function at that point should be divided again by 2(the true value now is divided by 4), and so on. Name the function RegulaRootMod(Fun, a, b, ErrM ax), where the return value from the function is the solution. The input argument Fun is the name of the function that calculates f(x) for a given x, a and b are two points that bracket the root, and ErrMax the maximum estimated relative error Use the function RegulaRootMod in 2.b to solve the following: c. 2si () f(x) = 3/4 _ _@)) - 3( -sin() cos()

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!