Ilya Zakharevich on Wed, 23 Jun 1999 15:38:46 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: changevar


On Wed, Jun 23, 1999 at 01:20:22PM +0200, Karim BELABAS wrote:
> ? reorder               \\ list of defined variables
> %2 = [x, p, y, z]
>         ^^^
> Hence your change of variable [z,x,y] is in fact
> 
>   x --> z
>   p --> x
>   y --> y
> 
> The changevar function is very hard to use reliably due to these phenomenons
> unless you start the session by defining first the needed variables in the
> correct order.

Then why not change changevar so that it takes a transposition:

  changevars([x,y],[y,z],[z,x])

Ilya