Top
Back: D.7.2.6 fglm_solve
Forward: D.7.2.8 simplexOut
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.7.2 solve_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.7.2.7 lex_solve

Procedure from library solve.lib (see solve_lib).

Usage:

lex_solve( i[,p] ); i=ideal, p=integer,

 
  p>0: gives precision of complex numbers in decimal digits (default: p=30).
 
Assume:

i is a reduced lexicographical Groebner bases of a zero-dimensional ideal, sorted by increasing leading terms.

Return:

nothing

Create:

The procedure creates a complec ring with the same variables but with complex coefficients (and precision p).
In this ring a list rlist of numbers is created, in which the complex roots of i are stored.

Example:

 
LIB "solve.lib";
ring r = 0,(x,y),lp;
// compute the intersection points of two curves
ideal s=  x2 + y2 - 10, x2 + xy + 2y2 - 16;
lex_solve(stdfglm(s),10);
→ // name of new ring: rC
→ // list of roots: rlist
rlist;
→ [1]:
→    [1]:
→       2.8284271247
→    [2]:
→       1.4142135624
→ [2]:
→    [1]:
→       -2.8284271247
→    [2]:
→       -1.4142135624
→ [3]:
→    [1]:
→       1
→    [2]:
→       -3
→ [4]:
→    [1]:
→       -1
→    [2]:
→       3

Top Back: D.7.2.6 fglm_solve Forward: D.7.2.8 simplexOut FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.7.2 solve_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.