Question: undefined In this project, you are supposed to implement the false-position method (FP) and Newton-Raphson method (NR) using Matlab for solving nonlinear equations in one
undefined
In this project, you are supposed to implement the false-position method (FP) and Newton-Raphson method (NR) using Matlab for solving nonlinear equations in one dimension Part 1. Use your FP and NR codes and appropriate initial guesses to find the positive root of the following nonlinear function. Please note that the equation below shows the relationship between the spring force (N) and defection (m) for an engineering system 3000x + 1000x3 = 15000 Plot the root as a function of iteration number for both methods. Plot the approximate error as a function of iteration, number for both methods. Plot the function and verify your results using the graphical approach Use an approximate percent relative error of 104 for stopping criterion (ie, es -0.0001%). Allow at most 1000 iterations Do not use Matiab built-in functions such as mean, stc and sum. The code should be fully commented and clear, In this project, you are supposed to implement the false-position method (FP) and Newton-Raphson method (NR) using Matlab for solving nonlinear equations in one dimension Part 1. Use your FP and NR codes and appropriate initial guesses to find the positive root of the following nonlinear function. Please note that the equation below shows the relationship between the spring force (N) and defection (m) for an engineering system 3000x + 1000x3 = 15000 Plot the root as a function of iteration number for both methods. Plot the approximate error as a function of iteration, number for both methods. Plot the function and verify your results using the graphical approach Use an approximate percent relative error of 104 for stopping criterion (ie, es -0.0001%). Allow at most 1000 iterations Do not use Matiab built-in functions such as mean, stc and sum. The code should be fully commented and clear
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
