main variable of a nonconstant polynomial
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](..).
R ≔ PolynomialRing⁡x,y,z
p ≔ y+1⁢x3+z+4⁢x+3
Change the ordering of the variable.
R ≔ PolynomialRing⁡z,y,x
p ≔ expand⁡y+1⁢x3+z+4⁢x+3
Set the characteristic to 3.
R ≔ PolynomialRing⁡z,y,x,3
p ≔ x+y3⁢z3+3⁢z2+2⁢z+y+4
Download Help Document
What kind of issue would you like to report? (Optional)