TestOrder - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Groebner

  

TestOrder

  

compare monomials in a monomial order

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

TestOrder(u, v, T)

Parameters

u, v

-

monomials

T

-

MonomialOrder or ShortMonomialOrder

Description

• 

The TestOrder command compares monomials with respect to a monomial order. It returns true if and only if u is less than or equal to v.

• 

The third argument T can be either a MonomialOrder or a ShortMonomialOrder description. See the Monomial Orders help page for a list of the available monomial orders.

Examples

> 

with⁡Groebner:

> 

M := [op(randpoly([x,y,z],degree=3,dense,coeffs=proc() 1 end))];

M≔x3,x2⁢y,x2⁢z,x⁢y2,x⁢y⁢z,x⁢z2,y3,y2⁢z,y⁢z2,z3,x2,x⁢y,x⁢z,y2,y⁢z,z2,x,y,z,1

(1)
> 

sort⁡M,a,b↦TestOrder⁡a,b,plex⁡x,y,z

1,z,z2,z3,y,y⁢z,y⁢z2,y2,y2⁢z,y3,x,x⁢z,x⁢z2,x⁢y,x⁢y⁢z,x⁢y2,x2,x2⁢z,x2⁢y,x3

(2)
> 

sort⁡M,a,b↦TestOrder⁡a,b,grlex⁡x,y,z

1,z,y,x,z2,y⁢z,y2,x⁢z,x⁢y,x2,z3,y⁢z2,y2⁢z,y3,x⁢z2,x⁢y⁢z,x⁢y2,x2⁢z,x2⁢y,x3

(3)
> 

sort⁡M,a,b↦TestOrder⁡a,b,tdeg⁡x,y,z

1,z,y,x,z2,y⁢z,x⁢z,y2,x⁢y,x2,z3,y⁢z2,x⁢z2,y2⁢z,x⁢y⁢z,x2⁢z,y3,x⁢y2,x2⁢y,x3

(4)

See Also

LeadingTerm

Monomial Orders

MonomialOrder