MathGroup Archive 1998

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

Search the Archive

Re: Adding equations


Try:

In:
e1 = a == b;
e2 = c == d;
e3 = Thread[e1+e2,Equal]

Out:
a+c==b+d


Tim


Lawrence Walker 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


  • Prev by Date: Re: Adding equations
  • Next by Date: Re: I Want More Digits in TraditionalForm
  • Previous by thread: Re: Adding equations
  • Next by thread: Re: Adding equations