RE: Q: lefthand/right hand side of equation
- To: mathgroup at smc.vnet.net
- Subject: [mg26922] RE: [mg26872] Q: lefthand/right hand side of equation
- From: "Harvey P. Dale" <hpd1 at is2.nyu.edu>
- Date: Fri, 26 Jan 2001 23:30:00 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Robert: Here's one way: a+b==c+d /. x_+y_==z_+a_->x+y which gives you the left-hand side, or a+b==c+d /. x_+y_==z_+a_->z+a which gives you the right-hand side. Of course, you might want more general pattern matches if you intend to use this with other equations. Best, Harvey -----Original Message----- From: Robert [mailto:robert.schuerhuber at gmx.at] To: mathgroup at smc.vnet.net Sent: Friday, January 26, 2001 1:27 AM To: mathgroup at smc.vnet.net Subject: [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