Another simplification question
- To: mathgroup at smc.vnet.net
- Subject: [mg95068] Another simplification question
- From: TL <latev at shaw.ca>
- Date: Mon, 5 Jan 2009 03:27:59 -0500 (EST)
Is there a way to do this in Mathematica: expr=(a very long and complex expression involving a b c d ...z as well as many x1 x2 y1 y2...) I'd like to simplify it, by setting dist=Sqrt[(x2-x1)^2+(y2-y1)^2] in order to do that I have to rearrange expr, so I can substitute as many (x2-x1)^2+(y2-y1)^2 instances as possible. How do I tell Mathematica to rearrange expr the way I need it, or better yet - to do the substitution automatically for me Thanks in advance!