(w, h) = findWeightVector (M, L)
In the first entry, this command returns a weight vector associated to a monomial order that places the generators of a monomial ideal $M$ ahead of standard monomials of the same degree. The second entry is a list of values for the weight vector dotted with the difference of the exponent of each standard monomial for each generator and the corresponding generator.
|
|
|
|
Note that the first generator listed for $M$ is $a^2$, and the first corresponding standard monomial is $a*c$. The difference of these two monomials exponent vectors is $(1,0,-1,0)$. This vector dotted with the weight vector $(2,2,1,1)$ gives the value $1$, which is the first value in the second list.
Note that the desired term ordering, and hence weight vector, may not exist. In this case, null is returned.
|
|
|
This command is used in the groebnerFamily routine.
The object findWeightVector is a method function.