MathGroup Archive 1999

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

Search the Archive

RE: extracting lhs or rhs of equations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16879] RE: [mg16853] extracting lhs or rhs of equations
  • From: "Jean-Marie THOMAS" <jmthomas at agat.net>
  • Date: Mon, 5 Apr 1999 02:24:20 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Suppose you have:
eq=lhs==rhs
Using FullForm is often a good start when trying to understand the way
Mathematica puts things together:
FullForm[eq]
So your tools should look like:
First[eq]
Last[eq]

Hope this helps,


****************************************
Jean-Marie THOMAS
mailto:jmthomas at agat.net
Conseil et Audit en Ingenierie de Calcul
Strasbourg, France
http://www.agat.net
****************************************
-----Original Message-----
From: David P. Johnson [mailto:johnson at ae.msstate.edu]
To: mathgroup at smc.vnet.net
Subject: [mg16879] [mg16853] extracting lhs or rhs of equations


Let's say I have an expression like:

  In[1]:= eq1= Sin[x] == x;

Is there a way to get just the left-hand side or right-hand side of the
equation? Something like:

  In[2]:= LHS[eq1]
  Out[2]:= Sin[x]

TIA.

--
David
->(Signature continues here)




  • Prev by Date: Re: Help Defining Variables (with long names)
  • Next by Date: RE: Help: Debuging Functions in Mathematica
  • Previous by thread: Re: extracting lhs or rhs of equations
  • Next by thread: Re: extracting lhs or rhs of equations