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

Online Help

All Products    Maple    MapleSim


Ordinals

  

degree

  

leading exponent of an ordinal number

  

tdegree

  

trailing exponent of an ordinal number

  

lcoeff

  

leading coefficient of an ordinal number

  

tcoeff

  

trailing coefficient of an ordinal number

  

lterm

  

leading term of an ordinal number

  

tterm

  

trailing term of an ordinal number

 

Calling Sequence

Parameters

Returns

Description

Examples

Compatibility

Calling Sequence

degree(o, formal)

tdegree(o, formal)

lcoeff(o, formal)

tcoeff(o, formal)

lterm(o, formal)

tterm(o, formal)

Parameters

o

-

ordinal, nonnegative integer, or polynomial with positive integer coefficients

formal

-

(optional) literal name

Returns

• 

The degree and tdegree commands return the leading and trailing exponents of the ordinal number o, respectively, that is, either an ordinal or a nonnegative integer.

• 

The lcoeff and tcoeff commands return the leading and trailing coefficients of the ordinal number o, respectively, that is, either a nonnegative integer or a polynomial with positive integer coefficients.

• 

The lterm and tterm commands return the leading and trailing terms of the ordinal number o, respectively. The result is returned in form of a list e,c, where the exponent e is either an ordinal or a nonnegative integer, and the coefficient c is either a nonnegative integer or a polynomial with positive integer coefficients.

Description

• 

The degree(o), lcoeff(o), and lterm(o) calling sequences return the leading exponent, coefficient, and term, respectively, of the ordinal number o.

• 

The degree (leading exponent) of o is the largest exponent in o with respect to the ordering of ordinals, and lcoeff and lterm return the coefficient and term, respectively, corresponding to the largest exponent.

• 

The tdegree(o), tcoeff(o), and tterm(o) calling sequences return the trailing exponent, coefficient, and term, respectively, of the ordinal number o.

• 

The trailing exponent of o is the smallest exponent in o with respect to the ordering of ordinals, and tcoeff and tterm return the coefficient and term, respectively, corresponding to the smallest exponent.

• 

lterm is equivalent to [degree,lcoeff] and tterm is equivalent to [tdegree,tcoeff].

• 

If o is a nonnegative integer or a polynomial with positive integer coefficients (representing a nonnegative integer), then degree and ldegree both return 0, and lcoeff and tcoeff both return o itself.

• 

If o is a parametric ordinal and it cannot be determined whether the leading or trailing coefficient is nonzero, all six commands return an error, unless the option formal is given.

• 

The degree, lcoeff and tcoeff commands overload the corresponding top-level routines degree, lcoeff, and tcoeff, respectively. The top-level commands are still accessible via the :- qualifier, that is, :-degree, :-lcoeff, and :-tcoeff, respectively.

• 

If o is a nonconstant polynomial with positive integer coefficients, then the results of degree and :-degree differ: the former returns the leading exponent of o as an ordinal, namely 0, while the latter returns the total degree of o as a polynomial, that is, a positive integer. Similarly, the results of lcoeff and :-lcoeff also differ in this case, as do the results of tcoeff and :-tcoeff.

Examples

withOrdinals

`+`&comma;`.`&comma;`<`&comma;<=&comma;Add&comma;Base&comma;Dec&comma;Decompose&comma;Div&comma;Eval&comma;Factor&comma;Gcd&comma;Lcm&comma;LessThan&comma;Log&comma;Max&comma;Min&comma;Mult&comma;Ordinal&comma;Power&comma;Split&comma;Sub&comma;`^`&comma;degree&comma;lcoeff&comma;log&comma;lterm&comma;ω&comma;quo&comma;rem&comma;tcoeff&comma;tdegree&comma;tterm

(1)

o1Ordinalω&comma;3&comma;2&comma;x&comma;1&comma;2&comma;0&comma;5

o1ωω3&plus;ω2x&plus;ω2&plus;5

(2)

degreeo1&comma;lcoeffo1=ltermo1

ω&comma;3=ω&comma;3

(3)

tdegreeo1&comma;tcoeffo1=ttermo1

0&comma;5=0&comma;5

(4)

lterm and tterm always return a list.

degree5=tdegree5,lcoeff5=tcoeff5,lterm5=tterm5

0=0,5=5,0&comma;5=0&comma;5

(5)

Nonconstant polynomial input.

degree2x2+1:-degree2x2+1,lcoeff2x2+1:-lcoeff2x2+1

02,2x2+12

(6)

An error is returned in the parametric case if the proper exponent or coefficient cannot be determined.

o2Ordinal2&comma;x&comma;1&comma;y&comma;0&comma;z

o2ω2x&plus;ωy&plus;z

(7)

degreeo2

Error, (in degree) cannot determine if x is nonzero

degreeo2&comma;formal

2

(8)

ω2+o2

ω21+x&plus;ωy&plus;z

(9)

degree,lcoeff

2,1+x

(10)

tcoeffo2

Error, (in tcoeff) cannot determine if z is nonzero

tcoeffo2&comma;formal

z

(11)

o2+3

ω2x&plus;ωy&plus;z+3

(12)

tdegree,tcoeff

0,z+3

(13)

Compatibility

• 

The Ordinals[degree], Ordinals[tdegree], Ordinals[lcoeff], Ordinals[tcoeff], Ordinals[lterm] and Ordinals[tterm] commands were introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

degree

lcoeff

ldegree

Ordinals

Ordinals[Ordinal]

overload

tcoeff