Re: ReplaceRepeated in case of non ordered expressions
- To: mathgroup at smc.vnet.net
- Subject: [mg108137] Re: ReplaceRepeated in case of non ordered expressions
- From: dh <dh at metrohm.com>
- Date: Tue, 9 Mar 2010 06:21:24 -0500 (EST)
- References: <hmvu9c$3nb$1@smc.vnet.net>
Hi, ReplaceRepeated (not ReplaceAll) can do the job: a + b //. {y -> c + d, a -> z + t, b -> y} Daniel On 07.03.2010 11:14, Maria Davis wrote: > Hi; > I have such equations: > x=a+b > y=c+d > a=z+t > b=y > > I want to use mathematica in order to simplify x and obtain: x=z+t+c > +d > I have used: [x,Listofequations] > This function is available if I have equations written in the > following order: > x=a+b > a=z+t > b=y > y=c+d > > but in the case of non ordered equations, it doesn't work. Further, I > must use equations in the order given. > Please can you help me. > Thanks > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>