[Numpy-discussion] nan, inf?
Shin
sdhyok at email.unc.edu
Mon Aug 2 19:50:00 CDT 2004
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 at 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
More information about the Numpy-discussion
mailing list