       Re: Q: lefthand/right hand side of equation

• To: mathgroup at smc.vnet.net
• Subject: [mg26936] Re: [mg26872] Q: lefthand/right hand side of equation
• From: Tomas Garza <tgarza01 at prodigy.net.mx>
• Date: Fri, 26 Jan 2001 23:30:12 -0500 (EST)
• References: <200101260627.BAA18679@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Well, it all depends how you choose to write your equation. You chose to
write it inside curly braces (why?). Then look at FullForm:

In:=
eqn = {a + b == c + d}
Out=
{a + b == c + d}
In:=
FullForm[%]
Out//FullForm=
List[Equal[Plus[a, b], Plus[c, d]]]

which means that you have

In:=
eqn[[1, 1]]
Out=
a + b
In:=
eqn[[1, 2]]
Out=
c + d

Tomas Garza
Mexico City

----- Original Message -----
From: "Robert" <robert.schuerhuber at gmx.at>
To: mathgroup at smc.vnet.net
Subject: [mg26936] [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: Napoleon
• Next by Date: Re: Extracting the name of a variable
• Previous by thread: Q: lefthand/right hand side of equation
• Next by thread: Re: Q: lefthand/right hand side of equation