MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

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






  • Prev by Date: Full simplify problem
  • Next by Date: Re: A basic question about RecurrenceTable - warning messages
  • Previous by thread: Re: Full simplify problem
  • Next by thread: Re: algebraic ReplaceAll?