solve equation

hello
I am currently wanna to solve this equation below. f = x^3.34 + 841*x^2.34 + 2236*x-12678808
I used syms x;
solve(f,'x')
but the matlab give the answer of RootOf(X1^167 + 42050*X1^166 + 866419225*X1^165 + 11658537091600*X1^164 +.....
May i know how to solve this equation above?
Thank

Respuestas (2)

Paulo Silva
Paulo Silva el 21 de Feb. de 2011

1 voto

f =@(x) x^3.34 + 841*x^2.34 + 2236*x-12678808
fsolve(f,0)
You can also see the solution on a figure (try the data cursor)
f =@(x) x^3.34 + 841*x^2.34 + 2236*x-12678808;
ezplot(f,58,60);
p=fsolve(f,0);
hold on
grid on
plot(p,f(p),'x','LineWidth',2,...
'MarkerEdgeColor','r',...
'MarkerSize',20)
Walter Roberson
Walter Roberson el 21 de Feb. de 2011

0 votos

What answer were you expecting when you asked for the algebraic solution of an expression with a floating point exponent? For example, is x^2.34 the same as x^(234/100) or should it be x^(117/50) or something else that happens to be representable as 2.34 ? The answers are different depending on the representation.

Etiquetas

Preguntada:

el 21 de Feb. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by