sort - Maple Help

Online Help

All Products    Maple    MapleSim


MTM

  

sort

  

numerical and lexicographical sort

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

sort(V)

sort(p)

Parameters

V

-

vector

p

-

polynomial expression

Description

• 

For vector V, the function sort(V) will return a vector W with the same dimensions as V.  The elements of W are the elements of V sorted in numerical and lexicographical order.

• 

For polynomial p, the function sort(p) will return a polynomial q which is equal to p, but with the terms ordered by descending degree.

Examples

withMTM:

vArrayg,24,3,e,`12a`

vg243e12a

(1)

sortv

32412aeg

(2)

usort4x+x4x2

ux4x2+4x

(3)

See Also

MTM

sort