solve equation
Show older comments
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
Answers (2)
Paulo Silva
on 21 Feb 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
on 21 Feb 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.
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!