Maxima's unacceptable error



Jaime Robledo escribi?:
> In Maxima, the polynomial (x-4)^2*(x-2)^3*(x-1)*(x+3) has two complex roots
> and only one integer root. Try it yourself:
>
> %i1 (x-4)^2*(x-2)^3*(x-1)*(x+3);
> %i2 allroots(%);
Hello,

allroots is a numerical solver and roots are approximate. See that 
imaginary parts are near zero. I don't know if it is possible to control 
its accuracy; maybe someone in the list can tell us something about this.

According to documentation, you can try allroots(%i*p) and compare results.


A symbolic solver gives better results:

(%i6) (x-4)^2*(x-2)^3*(x-1)*(x+3)$
(%i7) solve(%);
(%o7)                   [x = - 3, x = 1, x = 2, x = 4]




Jaime,

I have passed your post to the Maxima mailing list, since obviously your
message is not spam.

If you are interested in participating in this mailing list, please
proceed with your subscription at

http://maxima.sourceforge.net/maximalist.html

Thanks a lot for your interest in Maxima.


- 
Mario Rodriguez Riotorto
www.biomates.net