VAROPT INDEX

VAROPT _ _ _ _ _ _ _ _ _ _ _ _ switch

When varopt is on, the sequence of variables is optimized by solve with respect to execution speed. Otherwise, the sequence given in the call to solve is preserved. Default is on.

In combination with the switch arbvars, varopt can be used to control variable elimination.

examples:


off arbvars; 

solve({x+2z,x-3y},{x,y,z});				

           x      x
  		   {{y=-,z= - -}} 
           3      2


solve({x*y=1,z=x},{x,y,z});				

               1
  		   {{z=x,y=-}} 
               x


off varopt; 

solve({x+2z,x-3y},{x,y,z});				

                       2*z
  		   {{x= - 2*z,y= - ---}} 
                        3


solve({x*y=1,z=x},{x,y,z});				

           1
  		   {{y=-,x=z}} 
           z