solve equation
Afficher commentaires plus anciens
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
Réponses (2)
Paulo Silva
le 21 Fév 2011
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
le 21 Fév 2011
0 votes
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.
Catégories
En savoir plus sur Numeric Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!