[back] [prev] [next] [index] [root]

 


PolyZeros

Computes roots of a polynomial.

Syntax:

L := PolyZeros (f [[, "complex"|"int"] [, p [, m ]]]);

list
  L  
polynomial
  f  

Description:

The PolyZeros function returns a list containing roots of a polynomial.


Example:

Compute all complex roots of x^3 + 2 :

kash> f := Poly(Zx,[1,0,0,2]);
x^3 + 2
kash> PolyZeros(f);
> [ -1.259921049894873164767210607278228350570251464701, 
  0.629960524947436582383605303639114175285125732350882 + 1.091123635971721403\
560072614189808881325873338741*i, 
  0.629960524947436582383605303639114175285125732350882 - 1.091123635971721403\
560072614189808881325873338741*i ]


<- back[back] [prev] [next] [index] [root]