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
답변 (2개)
Paulo Silva
2011년 2월 21일
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
2011년 2월 21일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!