PolynomialIdeals
NumberOfSolutions
compute the number of solutions over the algebraic closure
Calling Sequence
Parameters
Description
Examples
References
NumberOfSolutions(J)
NumberOfSolutions(G, tord)
J
-
a polynomial ideal
G
list or set of polynomials; a Groebner basis
tord
a monomial order
The NumberOfSolutions command computes the number of solutions of a system over the algebraic closure of the coefficient field, including multiplicities. A zero-dimensional system has a finite number of solutions.
Let G be a Groebner basis for the ideal, then the number of solutions is equal to the number of monomials not divisible by a leading monomial of G.
Note that if the second calling sequence is used, NumberOfSolutions does not verify that G actually is a Groebner basis for the monomial order tord, and the result may be incorrect if it is not.
This function is part of the PolynomialIdeals package, and can be used in the form NumberOfSolutions(..) only after executing the command with(PolynomialIdeals). However, it can always be accessed through the long form of the command using PolynomialIdeals[NumberOfSolutions](..).
with⁡PolynomialIdeals:
J≔x2−y,y3+y+1
IsZeroDimensional⁡J
true
NumberOfSolutions⁡J
6
Observe that the generators of J are already a Groebner basis with respect to plex(x,y). The monomials not divisible by x^2 or y^3 are
M≔seq⁡seq⁡xi⁢yj,j=0..2,i=0..1
M≔1,y,y2,x,x⁢y,x⁢y2
The same result can be obtained by using the generators directly.
G≔Generators⁡J
G≔x2−y,y3+y+1
NumberOfSolutions⁡G,plex⁡x,y
K≔x2−y,y⁢z−1
IsZeroDimensional⁡K
false
NumberOfSolutions⁡K
∞
Cox, D.; Little, J.; and O'Shea, D. Using Algebraic Geometry. New York: Springer-Verlag, 1998.
See Also
Groebner[Basis]
PolynomialIdeals[IsZeroDimensional]
Download Help Document