ORDER INDEX

ORDER _ _ _ _ _ _ _ _ _ _ _ _ declaration

The order declaration changes the order of precedence of kernels for display purposes only.

syntax:

order<identifier>{,<identifier>}*

<kernel> must be a valid kernel or operator name complete with argument or a list of such objects.

examples:


x + y + z + cos(a); 

  COS(A) + X + Y + Z 


order z,y,x,cos(a); 

x + y + z + cos(a); 

  Z + Y + X + COS(A) 


(x + y)**2; 

   2            2
  Y  + 2*Y*X + X  


order nil; 

(z + cos(z))**2; 

        2                 2
  COS(Z)  + 2*COS(Z)*Z + Z

orderaffects the printing order of the identifiers only; internal order is unchanged. Change internal order of evaluation with the declaration korder. You can use order to feature variable s or functions you are particularly interested in.

Declarations made with order are cumulative: kernels in new order declarations are ordered behind those in previous declarations, and previous declarations retain their relative order. Of course, specific kernels named in new declarations are removed from previous ones and given the new priority. Return to the standard canonical printing order with the statement order nil.

The print order specified by order commands is not in effect if the switch pri is off.