MathGroup Archive 1999

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

Search the Archive

Re: Strange ReplaceRepeated

  • To: mathgroup at
  • Subject: [mg17114] Re: [mg17037] Strange ReplaceRepeated
  • From: "Arturas Acus" <acus at>
  • Date: Sat, 17 Apr 1999 03:35:09 -0400
  • Sender: owner-wri-mathgroup at

Thanks all, who pointed that FullForm of 
Infinity is DirectedInfinity[1].

However if I replace _?NumberQ by _?(NumberQ[#]&)
then everything works as expected. This is because
NumberQ[Infinity]-> False.
According to A. Hayes (do You hear Allan?)
recommendation (see How-Why74.nb ) both patterns 
should give the same answer. I think this 
behaviour is at least misleading.
Arturas Acus
Institute of Theoretical
Physics and Astronomy
Gostauto 12, 2600,Vilnius

E-mail: acus at
   Fax: 370-2-225361
   Tel: 370-2-612906

  • Prev by Date: MathLink C/C++?
  • Next by Date: Silly question: Plot3D Shading
  • Previous by thread: Strange ReplaceRepeated
  • Next by thread: Re: Strange ReplaceRepeated