[scilab-Users] Strange poly() results

Samuel Gougeon sgougeon at free.fr
Tue May 1 13:54:32 CEST 2012


Le 30/04/2012 16:48, Kevin McCoy a écrit :
> When I run the following:
>
> clean(coeff(poly(roots(poly([1 1 1],"x","c")),"x","r")))     I get ...
>
> ans  =
>
>      1. + 0.4330127i    1.    1.
>
> But I'm expecting ...
>
> ans  =
>
>      1.    1.    1.
>    
With scilab-master-1333574844  (5/4/2012) / win XP 32 bits, it is OK:
Scilab answers

1.    1.    1.




More information about the users mailing list