MainVariable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RegularChains

  

MainVariable

  

main variable of a nonconstant polynomial

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

MainVariable(p, R)

Parameters

R

-

polynomial ring

p

-

polynomial of R

Description

• 

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](..).

Examples

withRegularChains:

RPolynomialRingx,y,z

Rpolynomial_ring

(1)

py+1x3+z+4x+3

py+1x3+z+4x+3

(2)

MainVariablep,R

x

(3)

Initialp,R

y+1

(4)

MainDegreep,R

3

(5)

Rankp,R

x3

(6)

Tailp,R

xz+4x+3

(7)

Change the ordering of the variable.

RPolynomialRingz,y,x

Rpolynomial_ring

(8)

pexpandy+1x3+z+4x+3

px3y+x3+xz+4x+3

(9)

MainVariablep,R

z

(10)

Initialp,R

x

(11)

MainDegreep,R

1

(12)

Rankp,R

z

(13)

Tailp,R

x3y+x3+4x+3

(14)

Set the characteristic to 3.

RPolynomialRingz,y,x,3

Rpolynomial_ring

(15)

px+y3z3+3z2+2z+y+4

px+y3z3+3z2+2z+y+4

(16)

MainVariablep,R

z

(17)

Initialp,R

x3+y3

(18)

MainDegreep,R

3

(19)

Rankp,R

z3

(20)

Tailp,R

y+2z+1

(21)

See Also

Initial

MainDegree

PolynomialRing

Rank

RegularChains

Separant

Tail