Home Online Manual
Top
Back: koszul
Forward: lead
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.74 laguerre

Syntax:
laguerre ( poly_expression, int_expression, int_expression )
Type:
list
Purpose:
computes all complex roots of a univariate polynomial using Laguerre's algorithm. The second argument defines the precision of the fractional part if the ground field is the field of rational numbers, otherwise it will be ignored. The third argument (can be 0, 1 or 2) gives the number of extra runs for Laguerre's algorithm (with corrupted roots), leading to better results.
Note:
If the ground field is the field of complex numbers, the elements of the list are of type number, otherwise of type string.
Example:
 
ring rs1=0,(x,y),lp;
poly f=15x5+x3+x2-10;
laguerre(f,10,2);
==> [1]:
==>    0.8924637479
==> [2]:
==>    (-0.7392783383+I*0.5355190078)
==> [3]:
==>    (-0.7392783383-I*0.5355190078)
==> [4]:
==>    (0.2930464644-I*0.9003002396)
==> [5]:
==>    (0.2930464644+I*0.9003002396)