MathGroup Archive 1998

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

Search the Archive

ReplaceList Use

  • To: mathgroup at smc.vnet.net
  • Subject: [mg13535] ReplaceList Use
  • From: iaguirre at tsc.upna.es (Idoia Aguirre)
  • Date: Fri, 31 Jul 1998 04:33:43 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
I would like to apply a list of rules to a expression in all possible
ways. For example:

	expression:A1*A2*B3
	rules:  {A1*B3->Z, A2*B3 ->Y}
	results: Z*A2 (if rule 1 is applied)
		 Y*A1 (if rule 2 is applied)

I have tried with ReplaceList function but I can't do it.

Can anybody help me??

TIA


	Idoia Aguirre



Dpto. Ing. Eléctrica y Electrónica.
Univ. Pública de Navarra.
31006 Pamplona.
SPAIN

e-mail: iaguirre at upna.es
	iaguirre at tsc.upna.es
----------------------------------------------------


  • Prev by Date: Re: How to declare Integers?
  • Next by Date: Sorting a Table?
  • Previous by thread: Re: Packages Search Path: how to set it?
  • Next by thread: Sorting a Table?