Re: Strange ReplaceRepeated
- To: mathgroup at smc.vnet.net
- Subject: [mg17071] Re: Strange ReplaceRepeated
- From: Fabien Quillere <quillere at irisa.fr>
- Date: Sat, 17 Apr 1999 03:34:47 -0400
- Organization: IRISA, Campus de Beaulieu, 35042 Rennes Cedex, FRANCE
- References: <7f1dko$kou@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Arturas,
The internal form (cf FullForm) of Infinity is DirectedInfinity[1].
Here is where your rule finds a 1...
I suggest you replace all occurrences of Infinity by a new symbol, say infty,
apply your rule, and then replace back infty by Infinity:
tarp = tarp /. (Infinity->infty);
(tarp//.{F[_]:>S[infty],_?NumberQ:>S[infty]}) /. (infty->Infinity)
--
Fabien