Re: Strange ReplaceRepeated
- To: mathgroup at smc.vnet.net
- Subject: [mg17114] Re: [mg17037] Strange ReplaceRepeated
- From: "Arturas Acus" <acus at itpa.lt>
- Date: Sat, 17 Apr 1999 03:35:09 -0400
- Sender: owner-wri-mathgroup at wolfram.com
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 Lithuania E-mail: acus at itpa.lt Fax: 370-2-225361 Tel: 370-2-612906