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

Online Help

Ordinals

  

Dec

  

decrement ordinal

 

Calling Sequence

Parameters

Returns

Description

Examples

Compatibility

Calling Sequence

Dec(a)

Parameters

a

-

ordinal, nonnegative integer, or polynomial with positive integer coefficients

Returns

• 

ordinal data structure, nonnegative integer, polynomial with positive integer coefficients, or .

Description

• 

The Dec(a) calling sequence decrements the ordinal number , if possible. If , then the return value is . Otherwise, if the trailing term is , where  is an ordinal and  is a positive integer, then exactly one of the following happens:

– 

If  then  is replaced by .

– 

If  and , then the trailing term is replaced by the sum of the two terms .

– 

Otherwise, if  and , then the trailing exponent is replaced by .

• 

Note that in general  is not the largest ordinal number smaller than , because such an ordinal does not exist if  is a limit ordinal, which means its trailing degree is nonzero.

• 

If  is a parametric ordinal number and  is not a polynomial with nonnegative integer coefficients, an error is raised.

Examples

(1)

(2)

(3)

Parametric examples.

(4)

(5)

(6)

(7)

Error, (in Ordinals:-Dec) cannot decrement, x^2+x

Compatibility

• 

The Ordinals[Dec] command was introduced in Maple 2015.

• 

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

See Also

Ordinals

Ordinals[Ordinal]

Ordinals[Sub]

Ordinals[tdegree]

 


Download Help Document