Ordinals
Max
maximum of ordinals
Min
minimum of ordinals
Calling Sequence
Parameters
Description
Examples
Compatibility
Max(a, b, ...)
Min(a, b, ...)
a, b, ...
-
ordinal numbers, that is, ordinals, non-negative integers, or polynomials with positive integer coefficients, or (possibly nested) lists of ordinal numbers
If all arguments are ordinal numbers, the Max(a, b, ...) calling sequence returns the largest of the arguments with respect to the ordering of ordinals, and the Min(a, b, ...) calling sequence returns the smallest of the arguments.
Any of the arguments can be a (possibly nested) list, and the argument sequence is converted into a non-nested, flat sequence of ordinal numbers first.
Max() returns 0, and Min() returns NULL.
Parametric ordinals are accepted. If the left difference of two ordinal numbers cannot be determined in the parametric case, an error will be raised.
with⁡Ordinals:
a≔Ordinal⁡ω,3,3,5,1,1,0,4
a≔ωω⋅3+ω3⋅5+ω+4
b≔Ordinal⁡ω,3,3,3,2,2
b≔ωω⋅3+ω3⋅3+ω2⋅2
Max⁡3,a,ω,b
ωω⋅3+ω3⋅5+ω+4
Min⁡3,a,ω,b=Min⁡3,a,ω,b
3=3
sort⁡3,a,ω,b,LessThan
3,ω,ωω⋅3+ω3⋅3+ω2⋅2,ωω⋅3+ω3⋅5+ω+4
Max⁡
0
Parametric examples.
c≔Ordinal⁡1,x,0,2
c≔ω⋅x+2
Max⁡b,3,c
ωω⋅3+ω3⋅3+ω2⋅2
Min⁡b,3,c
Error, (in Ordinals:-degree) cannot determine if x is nonzero
Min⁡b,3,Eval⁡c,x=x+1
3
Max⁡Eval⁡c,x=x+1,Eval⁡c,x=x2+1
Error, (in Ordinals:-Max) unable to determine maximal element
The Ordinals[Max] and Ordinals[Min] commands were introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Ordinals[Gcd]
Ordinals[Lcm]
Ordinals[LessThan]
Ordinals[Ordinal]
Download Help Document