RegularChains
MainVariable
main variable of a nonconstant polynomial
Calling Sequence
Parameters
Description
Examples
MainVariable(p, R)
R
-
polynomial ring
p
polynomial of R
The function call MainVariable(p,R) returns the greatest variable of p with respect to the variable ordering of R.
It is assumed that p is a nonconstant polynomial.
This command is part of the RegularChains package, so it can be used in the form MainVariable(..) only after executing the command with(RegularChains). However, it can always be accessed through the long form of the command by using RegularChains[MainVariable](..).
with⁡RegularChains:
R≔PolynomialRing⁡x,y,z
R≔polynomial_ring
p≔y+1⁢x3+z+4⁢x+3
MainVariable⁡p,R
x
Initial⁡p,R
y+1
MainDegree⁡p,R
3
Rank⁡p,R
x3
Tail⁡p,R
x⁢z+4⁢x+3
Change the ordering of the variable.
R≔PolynomialRing⁡z,y,x
p≔expand⁡y+1⁢x3+z+4⁢x+3
p≔x3⁢y+x3+x⁢z+4⁢x+3
z
1
x3⁢y+x3+4⁢x+3
Set the characteristic to 3.
R≔PolynomialRing⁡z,y,x,3
p≔x+y3⁢z3+3⁢z2+2⁢z+y+4
x3+y3
z3
y+2⁢z+1
See Also
Initial
MainDegree
PolynomialRing
Rank
Separant
Tail
Download Help Document