MathGroup Archive 2001

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

Search the Archive

Re: Q: lefthand/right hand side of equation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26912] Re: [mg26872] Q: lefthand/right hand side of equation
  • From: Matt.Johnson at autolivasp.com
  • Date: Fri, 26 Jan 2001 23:29:52 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Robert:

In[23]:=
eqn = {a + b == c + d}
Out[23]=
{a + b == c + d}
In[24]:=
lhs = eqn[[1, 1]]
Out[24]=
a + b
In[25]:=
rhs = eqn[[1, 2]]
Out[25]=
c + d

-matt




Robert <robert.schuerhuber at gmx.at> on 01/25/2001 11:27:20 PM

cc:
Subject: [mg26912]  [mg26872] Q: lefthand/right hand side of equation



hello!
maybe a rather simple question:

if i have an equation, how can i get the left/right hand side?

e.g.

eqn={a+b==c+d};

i'd like to get something like:

l=a+b
r=c+d

thanks,

robert









  • Prev by Date: Re: Q: lefthand/right hand side of equation
  • Next by Date: Any better way for finding frequencies of list entries?
  • Previous by thread: Re: Q: lefthand/right hand side of equation
  • Next by thread: Re: Q: lefthand/right hand side of equation