somayeh didari on Tue, 24 Sep 2013 19:23:20 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

rational roots


I need to find rational roots of a polynomial in Pari/gp. But when I use polroots command, Pari gives all complex roots. On the other hand rational points are returned in complex type, too. How can i find rational roots in rational type? for example

? polroots(x^2-0.25)
%14 = [-0.5000000000000000000000000000 + 0.E-28*I, 0.500000000000000000000000000
0 + 0.E-28*I]~

But I need [-0.5, 0.5]!!!!!!!!!
 
somayeh didari