|
Calling Sequence
|
|
Split(a, degree=d)
Split(t, degree=d)
Split(a, degree=d, output=o)
Split(t, degree=d, output=o)
|
|
Parameters
|
|
a
|
-
|
ordinal, nonnegative integer, or polynomial with positive integer coefficients
|
t
|
-
|
list of pairs of the form [e,c], where e is either an ordinal data structure or a nonnegative integer and c is either a nonnegative integer or a polynomial with positive integer coefficients, and all exponents are strictly decreasing with respect to the ordering of ordinals
|
d
|
-
|
(optional) ordinal, nonnegative integer, or polynomial with positive integer coefficients; the default value is
|
o
|
-
|
(optional) literal keyword; one of lists, mixed or index
|
|
|
|
|
Returns
|
|
•
|
The Split command returns an expression sequence l, r.
|
•
|
By default, l and r are either ordinal data structures, nonnegative integers, or polynomials with positive integer coefficients.
|
•
|
If output=lists is specified, then l and r are both lists of pairs of the same form as described for t above.
|
•
|
The return values for output=mixed and output=lists are identical, except if l=[], r=[], or l or r or both are of the form [[0,c]]. In these cases, the return value for output=mixed is c instead or r, where c=0 if r=[], and similarly for l.
|
•
|
If output=index is specified, then the return value is a nonnegative integer i such that l is the sum of the first (and largest) i terms of a in the Cantor normal form, with i=0 if and only if l=0.
|
|
|
Description
|
|
•
|
The Split(a, degree=d) calling sequence splits the ordinal number into two parts according to the specified degree , namely, such that and either (if ) or .
|
•
|
In particular, for the default value of degree=1, is the constant coefficient of , which is equal to the trailing coefficient if , or otherwise.
|
•
|
This is related to a left division with remainder of by , as follows: , where .
|
•
|
The Split(t, degree=d) calling sequence performs the same split on the ordered set of terms . It is equivalent to Split(Ordinal(t), degree=d).
|
•
|
The form of the return values is determined by the output option. If this option is not given (the default), then the result is returned as an expression sequence of two ordinal numbers (even if the input is a list of pairs). Otherwise, the result is returned in the form as described in the Returns section.
|
|
|
Examples
|
|
| (1) |
>
|
|
| (2) |
| (3) |
| (4) |
| (5) |
| (6) |
| (7) |
The output=index option returns only the number of terms in :
>
|
|
>
|
|
If is a list of terms, then the calling sequences for and are equivalent:
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
Parametric ordinals are supported:
>
|
|
| (13) |
>
|
|
| (15) |
>
|
|
| (16) |
|
|
Compatibility
|
|
•
|
The Ordinals[Split] command was introduced in Maple 2015.
|
|
|
|