compute the number of solutions over the algebraic closure
a polynomial ideal
list or set of polynomials; a Groebner basis
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](..).
J ≔ x2−y,y3+y+1
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
The same result can be obtained by using the generators directly.
G ≔ Generators⁡J
K ≔ x2−y,y⁢z−1
Cox, D.; Little, J.; and O'Shea, D. Using Algebraic Geometry. New York: Springer-Verlag, 1998.
Download Help Document