Question

ind 2 imaginary roots of equation 1/(x*3+xA2+1), mullers method, matlab nswer only if sure

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi,

The code to your question is

clc
e=0.0001;
x1=-1;x2=0;x3=1;
f=inline('1/((x^3)+x^2+1)','x');
N=0;
while (1)
if abs(f(x3))>e
c=f(x3);
t=[((x1-x3)^2),(x1-x3);((x2-x3)^2),(x2-x3)];
p=[f(x1)-f(x3);f(x2)-f(x3)];
L=inv(t)*p;
a=L(1);
b=L(2);
if b>0
x=x3-((2*c)/(b+sqrt(b^2-4*a*c)));
else
x=x3-((2*c)/(b-sqrt(b^2-4*a*c)));
end
x1=x2;
x2=x3;
x3=x;

else
break;
end
end
x3
conj(x3)

4New to MATLAB? Watch this Video, see Examples, or read Getting Started x3 20.967584598908935 +4.418925033908822:i ans - 20.967584598908935 - 4.418925033908822:i fx >>

Revert in case of any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
ind 2 imaginary roots of equation 1/(x*3+xA2+1), mullers method, matlab nswer only if sure
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1) Using Matlab, find all real and complex roots of the following polynomial equation: (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8 2)...

    1) Using Matlab, find all real and complex roots of the following polynomial equation: (x-1)(x-2)(x-3)(x-4)(x-5)(x-6)(x-7)=8 2) Using Matlab, find the root for the following system of equations. Both x and y are positive. a: (x^2)cos(y)=1 b: e^(-4x)+1

  • only wuestion b display outputs and script Determine the positive roots of the equation x-5xsin (3r)...

    only wuestion b display outputs and script Determine the positive roots of the equation x-5xsin (3r) +3 = 0. e MATLAB to calculate the following integral: 10 0.5x3 2 1+2 S + cos 1.2x) (x + 2)2)

  • 3. Use the bisection MATLAB program to estimate the roots of the function k(x) = x2...

    3. Use the bisection MATLAB program to estimate the roots of the function k(x) = x2 - 4, where x's range is [-1, 3). Include solutions for this method in the report. 4. Write a MATLAB program that uses the false-position method to estimate the roots of the function k(x) in problem#3. Include your m-file and solutions for this method in the report. In addition, submit your m-file separately.

  • 6. Find the general solution of the equation. If the roots are complex (imaginary numbers) write...

    6. Find the general solution of the equation. If the roots are complex (imaginary numbers) write as a linear combination 7. Solve using the method of undetermined coefficients. Find e particular solution, and then give the general solution. 8. Solve using the method of undetermined coefficients. Find of cos and sin. z', + 42 + 4x 0 the particular solution, and then give the general solution. -3r +2r sin(t) 9. Solve using the method of undetermined coefficients. Find the particular...

  • Only the matlab nlinear equations x 0.75 Determine the roots of these equations using: a) The...

    Only the matlab nlinear equations x 0.75 Determine the roots of these equations using: a) The Fixed-point iteration method. b) The Newton Raphson method. Employ initial guesses of x y 1.2 and perform the iterations until E.<10%. Note: You can use to solve the problems, but you should sol at least two full iterations manually. AB bl Du Thursd 30/3/ 1. For the displacement in Q3 y 10 e cos at 0 St S 4. a) Plot the displacement y...

  • MatLab only Problem B-2-17 Matlab only y Solve the following difference equation: x(k + 2) =...

    MatLab only Problem B-2-17 Matlab only y Solve the following difference equation: x(k + 2) = x(k + 1) + 0.25x(k) - u(k + 2) where x(0) - 1 and x(1) - 2. The input function u(k) is given by u(k) = 1, k = 0,1,2,... Solve this problem lasti enabytíonlig maabcomputationally with MATLAB,

  • Use Matlab. Thanks! 2. For the equation et = x + 2, (a) use the fixed...

    Use Matlab. Thanks! 2. For the equation et = x + 2, (a) use the fixed point iteration method to determine its two roots to eight correct decimal places (you may need to write this equation in two different ways of x = g(x) in order to obtain these two roots); (b) numerically calculate the convergence rates for your converged iterations; (c) compare these numerical convergence rates with the theoretical conver- gence rates we presented in class (also see Theorem...

  • Hi, I need help doing this. 3. Use the bisection MATLAB program to estimate the roots...

    Hi, I need help doing this. 3. Use the bisection MATLAB program to estimate the roots of the function k(x) = x2 - 4, where x’s range is [-1, 3]. Include solutions for this method in the report. Write a MATLAB program that uses the false-position method to estimate the roots of the function k(x) in problem#3. Include your m-file and solutions for this method in the report. In addition, submit your m-file separately.

  • 6) Use MATLAB and Newton-Raphson method to find the roots of the function, f(x) = x-exp...

    6) Use MATLAB and Newton-Raphson method to find the roots of the function, f(x) = x-exp (0.5x) and define the function as well as its derivative like so, fa@(x)x^2-exp(.5%), f primea@(x) 2*x-.5*x"exp(.5%) For each iteration, keep the x values and use 3 initial values between -10 & 10 to find more than one root. Plot each function for x with respect to the iteration #.

  • State the degree of the polynomial equation. 31) 3(x + 6)2(x - 6)3 = 0 Find...

    State the degree of the polynomial equation. 31) 3(x + 6)2(x - 6)3 = 0 Find all of the real and imaginary roots, stating the multiplicity of each. 32) (x + 5)2(x - 1) = 0 Find the product. 33) (x - 7i)(x + 7i) Find all real solutions to the equation. 34) Vx + 13 = x - 7 Find all real and imaginary solutions. 35) -2x3 + 2x2 + 8x - 8 = 0

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT