MTM[sort] - numerical and lexicographical sort
|
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
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?