Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

MathGroup Archive 1999

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

Search the Archive

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


  • Prev by Date: Re: Heip! How to draw a graph with log x axis.
  • Next by Date: Re: Heip! How to draw a graph with log x axis.
  • Previous by thread: Re: Strange ReplaceRepeated
  • Next by thread: Re: Re: Strange ReplaceRepeated


  •  © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy