solve function does not give me value of root
Mostra commenti meno recenti
my code is simple:
syms x y a b c
a=0.5;
b=0.0092;
c=0.04;
y=x^2+1/x^3;
solve(a*x^2+b*y+c)
matlab gives:
ans =
RootOf(z^5 + (100*z^3)/1273 + 23/1273, z)[1]
RootOf(z^5 + (100*z^3)/1273 + 23/1273, z)[2]
RootOf(z^5 + (100*z^3)/1273 + 23/1273, z)[3]
RootOf(z^5 + (100*z^3)/1273 + 23/1273, z)[4]
RootOf(z^5 + (100*z^3)/1273 + 23/1273, z)[5]
BUT, when I change y to y=x^2+1
matlab gives:
ans =
-(156579^(1/2)*1i)/1273
(156579^(1/2)*1i)/1273
WHY is that? I dont see there is so much difference. hope someone could help me, THanks!!
2 Commenti
Roger Stafford
il 4 Apr 2016
Modificato: Walter Roberson
il 4 Apr 2016
The difference between "y=x^2+1/x^3" and "y=x^2+1" is that the first leads to a fifth degree polynomial equation and the second to a quadratic equation. We all learned how to solve quadratic equations in high school, but mathematicians have shown that "In algebra, the Abel–Ruffini theorem (also known as Abel's impossibility theorem) states that there is no general algebraic solution—that is, solution in radicals—to polynomial equations of degree five or higher with arbitrary coefficients". See
ZA niceguy
il 5 Apr 2016
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Utilities for the Solver in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!