Previous Up Next

10.1.26 Changing the order of variables

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

Example

reorder(x^2+2*x*a+a^2+z^2-x*z,[a,x,z])
     
a2+2 ax+x2xz+z2           
Remark.

The variables must be symbolic before calling reorder. If they are not, purge them (see Section 3.3.8).


Previous Up Next