Question: I need assistance with writing a Matlab code for the following . 5. Determine the highest real root of f(x)-6r11x - 6.1 (a) Graphically. (b)

I need assistance with writing a Matlab code for the following

.I need assistance with writing a Matlab code for the following .

5. Determine the highest real root of f(x)-6r11x - 6.1 (a) Graphically. (b) Using the Newton-Raphson method (three iterations, x, 3.5). (c) Using the secant method (three iterations, x-12.5 and x, 3.5). (d) Using the modified secant method (five iterations, x, = 3.5, = 0.01). (e) The following is an example of the Newton-Raphson method, modify it as a secant method function m-file function [ root, ea, iter NewtonRaphson( func , xr, es } UNTITLED Summary of this function goes here Detailed explanation goes here xr is the initial guess, es is the desire estimate error iter is the number of iteration, ea is the relative error syms x f-func fp-diff(f) iter = 0; %first derivative of the input function while (1) xr-subs (f, x, xr)/subs (fp, x,xr Plug in f and fp to tind next iter iter 1 if xr ~= 0, ea = abs((xr - xrold)/Xr) * 100; end if ea >y=x ^ 3-1; >>NewtonRaphson (y,3.2,0.1)

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