Determine the real root of fx 25 82x 90x2 44x3 8x4 07x

Determine the real root of f(x) = -25 + 82x - 90x^2 + 44x^3 - 8x^4 + 0.7x^5; Graphically Using bisection to determine the root to epsilon_g = 10% Employ initial guesses of x_l = 0.5 and X_a = 1.0. Perform the same computation as in (b) but use the false-position method and epsilon_g = 0.2%.

Solution

% First, write a file called roots.m.

function y = f(x)
y =0.7*x.^5 -8*x.^4+ 44* x.^3 - 90*x.^2 +83*x - 25;

%Save roots.m on your MATLAB® path.

%Solve for f(x) using this code

fun = at the rate symbol roots; % press shift 2 roots to get fun= at the rate and type two
x0 = 0.5; % initial point
z = fzero(fun,x0)

ezplot(fun)

Answer we get is

z =

0.5474

 Determine the real root of f(x) = -25 + 82x - 90x^2 + 44x^3 - 8x^4 + 0.7x^5; Graphically Using bisection to determine the root to epsilon_g = 10% Employ initia

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site