Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Adding equations

  • To: mathgroup at
  • Subject: [mg14385] Re: [mg14342] Adding equations
  • From: "Kevin J. McCann" <kevinmccann at>
  • Date: Sun, 18 Oct 1998 15:09:52 -0400
  • Sender: owner-wri-mathgroup at

eq1 = a == b
eq2 = c == d

Thread[eq1 + eq2,Equal]


The "Equal" in the Thread is the key.


-----Original Message-----
From: Lawrence Walker <lwalker701 at> To:
mathgroup at
Subject: [mg14385] [mg14342] Adding equations

>I've been trying to add two equations as follows:
>    a==b;
>    c==d;
>    %4+%5
>    (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: Plot, Cursor and Spelling Errors questions
  • Previous by thread: Re: Adding equations
  • Next by thread: RE: Adding equations