Previous Up Next

6.27.27  Changing the order of variables: reorder

The reorder command rewrites an expression, based on the priority of variables.


Example.
Input:

reorder(x^2+2*x*a+a^2+z^2-x*z,[a,x,z])

Output:

a2+2 a x+x2x z+z2


Warning.
The variables must be symbolic (if not, purge them (see Section 5.4.8) before calling reorder.


Previous Up Next