Re: simplifying a system of equations
- To: mathgroup at smc.vnet.net
- Subject: [mg105998] Re: simplifying a system of equations
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Wed, 30 Dec 2009 04:11:49 -0500 (EST)
On 12/29/09 at 1:18 AM, arbiadr at gmail.com (Maria Davis) wrote:
>I have a system of equations, that I want to solve symbolically and
>not numerically how can I do this? example: suppose I have the
>following system of equations:
>x=y+z
>y=e+r
>z=t+u
>I want to obtain x=e+r+t+u as a result. I have tried the command
>Solve[x == y + z && y == e + r && z == t + u, {x}] but Solve r=
eturns
>:x=y+z
To me, the easiest way to accomplish what you want would be to
use pattern matching and replacement rules. That is
In[2]:= x == y + z /. {y -> e + r, z -> t + u}
Out[2]= x==e+r+t+u