• To: mathgroup at smc.vnet.net
• Subject: [mg14415] Re: Adding equations
• From: phbrf at t-online.de (Peter Breitfeld)
• Date: Sun, 18 Oct 1998 15:10:17 -0400
• Organization: das ist ein weites Feld ...
• References: <703u1n\$hup@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Lawrence Walker <lwalker701 at earthlink.net> schrieb/wrote:
> Group:
>
> I've been trying to add two equations as follows:
>
> In[4]:=
>     a==b;
> In[5]:=
>     c==d;
> In[6]:=
>     %4+%5
> Out[6]=
>     (a==b)+(c==d)
>
> The result I was looking for is (a+c)==(b+d). The following works but it
> seems clumsy. In[7]:=
>     %4[[1]]+%5[[1]]==%4[[2]]+%5[[2]] Out[7]=
>     a+c==b+d
> Is there a way to elegantly add (sub, mult, div) two equations?  Also is
> there an elegant way to add (sub, mult, div) an expression to both
> sides of an equation?
>
> Lawrence Walker
>
>

Try this:

In1: eq1= a==b; eq2= c==d;
Out2: a+c==b+d

es gruesst
Peter

--
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
P e t e r  B r e i t f e l d              eMail: phbrf at t-online.de
Kreuzgasse 4, 88348 Saulgau, Germany      PGP public key: 08548045
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

```

• Prev by Date: Re: 2 ticks on a 2D plot
• Next by Date: Re: Adding equations