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: [mg16891] Re: extracting lhs or rhs of equations
  • From: "Atul Sharma" <mdsa at musica.mcgill.ca>
  • Date: Mon, 5 Apr 1999 02:24:26 -0400
  • References: <7e1bmf$ba2@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Using the Part function to return parts 1 and 2 separately, or in shorthand
form

lhs= eq1[[1]]
rhs=eq1[[2]]

A. Sharma MD


David P. Johnson wrote in message <7e1bmf$ba2 at smc.vnet.net>...
>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: How to interrupt a running evaluation in MathLink
  • Next by Date: Re: Problems with ContourPlot
  • Previous by thread: RE: extracting lhs or rhs of equations
  • Next by thread: Re: extracting lhs or rhs of equations