probable bug in solve



-----laurent couraud wrote: -----

>I try to sole this equation but Maxima function "solve" return only
>complex roots. the session is

In Maxima, a real valued expression might contain '%i.' For such
expressions, using something like ratsimp(rectform( )) might
eliminate the '%i.' For example:

(%i1) solve(x^3-8*x^2-197*x-502=0,x)$
(%i2) ratsimp(rectform(%));
(%o2) [x=(sqrt(3)*sqrt(655)*sin(atan((9*sqrt(2748082))/(14381*sqrt(3)))/3)-
      sqrt(655)*cos(atan((9*sqrt(2748082))/(14381*sqrt(3)))/3)+8)/3,
<deleted stuff>]
(%i3) float(%);
(%o3) [x=-3.0829302172279727,x=-8.3703979976656715,x=19.453328214893649]
      Barton