Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: symbolic equation simplification
Date: Sat, 1 Mar 2008 14:19:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <fqbokl$9i8$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1204381141 9800 172.30.248.37 (1 Mar 2008 14:19:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 1 Mar 2008 14:19:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:454750



Say I have something like this

syms a b
LHS=2*a +b;
RHS=3*a + 4*b;

which represents the equation:
2*a + b = 3*a + 4*b

I would like to get back:
a+3*b = 0

or something like that, where all the cancellations that
were possible were performed.  Is there a function that does
this?

Thanks,

Dave