MTM
sort
numerical and lexicographical sort
Calling Sequence
Parameters
Description
Examples
sort(V)
sort(p)
V
-
vector
p
polynomial expression
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.
withMTM:
v≔Arrayg,24,3,e,`12a`
v≔g243e12a
sortv
32412aeg
u≔sort4x+x4−x2
u≔x4−x2+4x
See Also
Download Help Document