[SciPy-user] Enabling NaN-usage in F77 code on Windows
Thu Oct 30 03:47:32 CDT 2008
Robert Kern a écrit :
> On Wed, Oct 29, 2008 at 17:56, Wes McKinney <firstname.lastname@example.org> 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.
foo = -1
nan = sqrt(foo)
More information about the SciPy-user