Use MATLAB software to solve the following Please include al

Use MATLAB software to solve the following (Please include all codes):

Use the Newton method to find the solution of f(x) = x^3 - 10. Include any graphs is necessary.

Solution

clear all

f=@(x)x.^3-10

df=@(x)3*x.^2

x0=input(\'enter initial guess\')

while abs(f(x0))>0.01

x1=x0-(f(x0)/df(x0))

x0=x1

end

f =

    @(x)x.^3-10


df =

    @(x)3*x.^2

enter initial guess2.5

x0 =

    2.5000


x1 =

    2.2000


x0 =

    2.2000


x1 =

    2.1554


x0 =

    2.1554


x1 =

    2.1544


x0 =

    2.1544

Use MATLAB software to solve the following (Please include all codes): Use the Newton method to find the solution of f(x) = x^3 - 10. Include any graphs is nece
Use MATLAB software to solve the following (Please include all codes): Use the Newton method to find the solution of f(x) = x^3 - 10. Include any graphs is nece

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site