Question: Requirements for the Functions ( Two Files ) : Use the knowledge you obtained from Lab 2 and Lab 3 to create a root -

Requirements for the Functions (Two Files):
Use the knowledge you obtained from Lab 2 and Lab 3 to create a root-finding function
based on the Secant Method; the function should take all the necessary inputs and return the
Root and Number of Iterations.
Use the knowledge you obtained from Lab 2 and Lab 3 to create a root-finding function
based on the Fixed-Point Iteration; the function should take all the necessary inputs and
return the Root and Number of Iterations.
Requirements for the Script:
Create a MATLAB script that finds one of the roots of the following function:
f(x)=x3-2x+1
Use fplot to plot this function.
Using one of the functions you created (Secant or Fixed point)
Using one of the textbook functions from Lab 4
Using one of the MATLAB built-in functions
Compare all these methods in terms of the Root value, the number of iterations, and the
time taken to get the root (Hint: Use tic toc)
Provide code in detail for each step with sample output pls.
Requirements for the Functions ( Two Files ) :

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