Re: Simplifying algebraic expr: howto?
- To: mathgroup@smc.vnet.net
- Subject: [mg11392] Re: [mg11370] Simplifying algebraic expr: howto?
- From: Sean Ross <seanross@worldnet.att.net>
- Date: Sun, 8 Mar 1998 20:13:17 -0500
- References: <199803070706.CAA28444@smc.vnet.net.>
Daniel G. Hyams wrote: > > I apologize for the (probable) simpleness of this questions, but I am > new to mathamatica... > > I have an expression (for example): > > u*(nx*u + ny*v) ---- (1) > > and a definition: > > theta = nx*u+ny*v > > How do I get mathematica to simplify the expression (1) such that it > returns: > > u*theta ? > > ----------------------------------------------------------- Daniel G. > Hyams > email: dhyams@ebicom.net > phone: (601) 323-4198 > ----------------------------------------------------------- In this case, use a substitution rule: u*(nx*u + ny*v) /.( nx*u+ny*v ->theta) returns theta u It appears that mathematicas rather odd canonical order puts the theta in front of the u. If that bothers you, someone else will have to help you change it. It is possible, but I don't know how. -- Remove the _nospam_ in the return address to respond.
- References:
- Simplifying algebraic expr: howto?
- From: "Daniel G. Hyams" <dgh2@Ra.MsState.EDU>
- Simplifying algebraic expr: howto?