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
degree(o, formal)
tdegree(o, formal)
lcoeff(o, formal)
tcoeff(o, formal)
lterm(o, formal)
tterm(o, formal)
o
-
ordinal, nonnegative integer, or polynomial with positive integer coefficients
formal
(optional) literal name
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.
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.
with⁡Ordinals
`+`,`.`,`<`,<=,Add,Base,Dec,Decompose,Div,Eval,Factor,Gcd,Lcm,LessThan,Log,Max,Min,Mult,Ordinal,Power,Split,Sub,`^`,degree,lcoeff,log,lterm,ω,quo,rem,tcoeff,tdegree,tterm
o1≔Ordinal⁡ω,3,2,x,1,2,0,5
o1≔ωω⋅3+ω2⋅x+ω⋅2+5
degree⁡o1,lcoeff⁡o1=lterm⁡o1
ω,3=ω,3
tdegree⁡o1,tcoeff⁡o1=tterm⁡o1
0,5=0,5
lterm and tterm always return a list.
degree⁡5=tdegree⁡5,lcoeff⁡5=tcoeff⁡5,lterm⁡5=tterm⁡5
0=0,5=5,0,5=0,5
Nonconstant polynomial input.
degree⁡2⁢x2+1≠:-degree⁡2⁢x2+1,lcoeff⁡2⁢x2+1≠:-lcoeff⁡2⁢x2+1
0≠2,2⁢x2+1≠2
An error is returned in the parametric case if the proper exponent or coefficient cannot be determined.
o2≔Ordinal⁡2,x,1,y,0,z
o2≔ω2⋅x+ω⋅y+z
degree⁡o2
Error, (in degree) cannot determine if x is nonzero
degree⁡o2,formal
2
ω2+o2
ω2⋅1+x+ω⋅y+z
degree⁡,lcoeff⁡
2,1+x
tcoeff⁡o2
Error, (in tcoeff) cannot determine if z is nonzero
tcoeff⁡o2,formal
z
o2+3
ω2⋅x+ω⋅y+z+3
tdegree⁡,tcoeff⁡
0,z+3
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
ldegree
Ordinals[Ordinal]
overload
Download Help Document