algebraic ReplaceAll?
- To: mathgroup at smc.vnet.net
- Subject: [mg122245] algebraic ReplaceAll?
- From: Dushan Mitrovich <dushanm at spinn.net>
- Date: Sat, 22 Oct 2011 06:06:53 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Is there a way to get ReplaceAll to actalgebraically, so it recognizes
the negative of a replaced quantity as well as the positive? For
example, this works
In: x-w /. x-w->y
Out: y
but these don't
In: -x+w /. x-w->y
w-x /. x-w->y
Out: w-x
w-x
- Dushan
- Follow-Ups:
- Re: algebraic ReplaceAll?
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: algebraic ReplaceAll?