[Matrix-SIG] NaN

Paul F. Dubois Paul F. Dubois" <dubois1@llnl.gov
Wed, 7 Oct 1998 14:53:55 -0700


This worked for me on one machine.
C:\WINDOWS>python
Python 1.5.1 (#0, Apr 13 1998, 20:22:04) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from Numeric import *
>>> infinity=(array([1.0])/array([0.0]))[0]
>>> x=array([1.,2.,3.])
>>> y=array([1.,0.,1.])
>>> z=x/y
>>> print equal(z,infinity)
[0 1 0]
>>>



-----Original Message-----
From: Yoon, Hoon (CICG - NY Program Trading) <HYoon@exchange.ml.com>
To: matrix-sig@python.org <matrix-sig@python.org>
Date: Wednesday, October 07, 1998 11:42 AM
Subject: [Matrix-SIG] NaN


>Hello,
>
>  I get NaN's inside my array. And I would like to elimiate them using
equal
>or something like that, but I cannot
>figure out how to mark them.
>
>  I tried:
>equal(array, NaN)
>equal(array, sqrt(-1))
>
>  Thank you,
>
>Hoon,
>
>
>_______________________________________________
>Matrix-SIG maillist  -  Matrix-SIG@python.org
>http://www.python.org/mailman/listinfo/matrix-sig
>
>