MathGroup Archive 2011

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

Search the Archive

algebraic ReplaceAll?


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?