logo       

Re: nan, inf?: msg#00004

python.numeric.general

Subject: Re: nan, inf?

Thanks. I thought importing all modules in numarray package also imports
nan and inf because the doc string of ieeespecial module has no mention
about "from numarray.ieeespecial import *"

>>> from numarray import *

>>> inf # the repr() of inf may vary from platform to platform
inf
>>> nan # the repr() of nan may vary from platform to platform
nan

Daehyok

On Mon, 2004-08-02 at 00:59, Stephen Walton wrote:
> On Sun, 2004-08-01 at 21:21, Shin wrote:
>
> > Following the document in ieeespacial.py,
> > I tried:
> >
> > >>> from numarray import *
> > >>> nan
> >
>
> [swalton@localhost ~]$ python
> Python 2.2.3 (#1, Jun 16 2003, 13:21:11)
> [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from numarray import *
> >>> from numarray.ieeespecial import *
> >>> nan
> nan
> >>> inf
> inf
--
Daehyok Shin (Peter)
Geography Department
Univ. of North Carolina-Chapel Hill



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise