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

Online Help

All Products    Maple    MapleSim


Ordinals

  

Split

  

split an ordinal by exponent

 

Calling Sequence

Parameters

Returns

Description

Examples

Compatibility

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 1

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 a into two parts a=l+r according to the specified degree d, namely, such that degreerd and either l=0 (if degreead) or tdegreeld.

• 

In particular, for the default value of degree=1, r is the constant coefficient of a, which is equal to the trailing coefficient if tdegreea=0, or 0 otherwise.

• 

This is related to a left division with remainder of a by ωd, as follows: Diva,ωd=q,r, where l=qωd.

• 

The Split(t, degree=d) calling sequence performs the same split on the ordered set of terms t. 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 t is a list of pairs). Otherwise, the result is returned in the form as described in the Returns section.

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)

aOrdinalω&comma;1&comma;3&comma;2&comma;2&comma;4&comma;1&comma;5

aωω&plus;ω32&plus;ω24&plus;ω5

(2)

Splita

ωω&plus;ω32&plus;ω24&plus;ω5&comma;0

(3)

Splita&comma;degree=3

ωω&plus;ω32&comma;ω24&plus;ω5

(4)

Diva&comma;ω3

ωω&plus;2&comma;ω24&plus;ω5

(5)

Splita&comma;degree=5

ωω&comma;ω32&plus;ω24&plus;ω5

(6)

Splita&comma;degree=ω

ωω&comma;ω32&plus;ω24&plus;ω5

(7)

The output=index option returns only the number of terms in l:

Splita&comma;degree=3&comma;output=index

2

(8)

Splita&comma;degree=5&comma;output=index

1

(9)

If t is a list of terms, then the calling sequences for t and a=Ordinalt are equivalent:

topa

tω&comma;1&comma;3&comma;2&comma;2&comma;4&comma;1&comma;5

(10)

Splita&comma;degree=3&comma;output=lists

ω&comma;1&comma;3&comma;2,2&comma;4&comma;1&comma;5

(11)

Splitt&comma;degree=3&comma;output=lists

ω&comma;1&comma;3&comma;2,2&comma;4&comma;1&comma;5

(12)

Parametric ordinals are supported:

bOrdinal3&comma;2&comma;1&comma;1&comma;0&comma;x

bω32&plus;ω&plus;x

(13)

Splitb

ω32&plus;ω&comma;x

(14)

Splitb&comma;output=lists

3&comma;2&comma;1&comma;1,0&comma;x

(15)

Splitb&comma;output=mixed

3&comma;2&comma;1&comma;1,x

(16)

Compatibility

• 

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

• 

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

See Also

Ordinals

Ordinals[degree]

Ordinals[Div]

Ordinals[LessThan]

Ordinals[Ordinal]