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.
with⁡MTM:
v≔Array⁡g,24,3,e,`12a`
v≔g243e12a
sort⁡v
32412aeg
u≔sort⁡4⁢x+x4−x2
u≔x4−x2+4⁢x
See Also
Download Help Document