__lagrange_bounds_phc(n,
m,
a,
tmpfile='/tmp/phc_tr')
| source code
|
This function determines the bounds on the roots in
the enumeration of totally real fields via Lagrange multipliers.
It is used internally by the main function
enumerate_totallyreal_fields_prim(), which should be consulted for
further information.
INPUT:
k -- integer, the index of the next coefficient
a -- list of integers, the coefficients
OUTPUT:
the lower and upper bounds as real numbers.
NOTES:
See Cohen [C] for the general idea and unpublished work of the
author for more detail.
REFERENCES:
[C] Henri Cohen, Advanced topics in computational number
theory, Graduate Texts in Mathematics, vol. 193,
Springer-Verlag, New York, 2000.
AUTHORS:
- John Voight (2007-09-19)
EXAMPLES:
sage: __lagrange_bounds_phc(3,5,[8,1,2,0,1],tmpfile='phc') # optional
/usr/local/bin/phc
[]
sage: __lagrange_bounds_phc(3,2,[8,1,2,0,1],tmpfile='phc') # optional
/usr/local/bin/phc
[-1.3333333333333299, 1.72983526722515e-16]
sage: __lagrange_bounds_phc(3,1,[8,1,2,0,1],tmpfile='phc') # optional
/usr/local/bin/phc
[]
|