MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Replace expressions

  • To: mathgroup at
  • Subject: [mg7691] Re: Replace expressions
  • From: Vanessa Portioli Rolnik <vanessa at>
  • Date: Sun, 29 Jun 1997 22:17:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hello all,

I have expressions of the type:

and I want to perform the following replacements:
              i->0,t->0,{1,j}->1*j and {2,k}->2*k
to get 

I use the following command 


but I the result is

              0[0, 0[1, 0], 0[2, 0], 0]

instead of what I expected it to be:

I need a command to hold the head of the expression and the lists, or a
better way to perform this replacement.
Please answer by email to vanessa at If there is enough
interest, I will post the answers to the net.

Thanks in advance for any help,

  • Prev by Date: Lighting
  • Next by Date: problem of notebook in 16bit X server
  • Previous by thread: Re: Replace expressions
  • Next by thread: Re: Replace expressions