[SciPy-user] Enabling NaN-usage in F77 code on Windows

fred fredmfp@gmail....
Thu Oct 30 03:47:32 CDT 2008


Robert Kern a écrit :
> On Wed, Oct 29, 2008 at 17:56, Wes McKinney <wesmckinn@gmail.com> wrote:
>> You would be right about the NAN not being a built-in symbol...any
>> suggestions for making a NAN? I don't know if there's a a generic way that
>> will make it back to Python correctly.
> 
> inf = 1e200 * 1e200
> nan = inf * 0
> 
> Most likely.

I use:
foo = -1
nan = sqrt(foo)


Cheers,

-- 
Fred


More information about the SciPy-user mailing list