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: [mg16877] Re: extracting lhs or rhs of equations
  • From: fritza at ripco.com (Fritz Anderson)
  • Date: Mon, 5 Apr 1999 02:24:19 -0400
  • Organization: Ripco Communications Inc.
  • References: <7e1bmf$ba2@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7e1bmf$ba2 at smc.vnet.net>, David P. Johnson
<johnson at ae.msstate.edu> wrote:

> 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]

Try:

lhs[ Equal[left_, right_] ] := left

The definition will get you some spelling warnings, but those are OK.

-- 
Fritz Anderson, Chicago Illinois
fritza at ripco, a commercial site


  • Prev by Date: Re: semi-transparent surfaces
  • Next by Date: Re: extracting lhs or rhs of equations
  • Previous by thread: Re: extracting lhs or rhs of equations
  • Next by thread: Re: extracting lhs or rhs of equations