Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Write one matlab script that computes the root for f(x) = ex + x3 + 2x2 1.2 for Xo = -0.4 (x1 = 0
4. Write one matlab script that computes the root for f(x) = ex + x3 + 2x2 1.2 for Xo = -0.4 (x1 = 0 for secant and false-positioning) using all three methods (newton- raphson, secant and false-positioning). You need to store the roots of the three different methods in three different arrays: rootNR, rootSCT, rootFP. The array will hold the results of the solutions at each iteration and is indexed by the iteration number. The iterations should continue until the worst solution among the three solutions reaches 5 significant digits. 5. Write a Matlab script that estimates the roots of an nth order polynomial using QD method until m significant digits are correct. You need to test you're your function at least with two different polynomials to show it works
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