Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write one matlab script that computes the root for f(x)=e^x+x^3+2x^2-1.2 for x0=0.4 (' x1= 0 for secant and false-positioning) using all three methods (newtonraphson, secant

Write one matlab script that computes the root for f(x)=e^x+x^3+2x^2-1.2 for x0=0.4 (' x1= 0 for secant and false-positioning) using all three methods (newtonraphson, 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.

newton raphson formula=> xn+1=xn F(xn)/F'(xn).

secant formula: xn+1=xn- f(xn)(xn-xn-1)/f(xn)-f(xn-1)

false positiong formula: xn+1=xn-F(xn)(xn-xo)/F(xn)-F(xo)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

How will the members be held accountable?

Answered: 1 week ago

Question

a. How will the leader be selected?

Answered: 1 week ago