On Nov 16, 2009, at 7:23 PM, William Cauchois wrote:
> On Nov 16, 10:59 am, Robert Bradshaw <[email protected]>
> wrote:
>
>> As a first pass, just surround the evaluation with a try/except, as
>> you would in Python. Perhaps you could set the value in the except
>> clause to nan.
>>
>> - Robert
>
> Is there a constant for NaN? That's kind of what I was asking in my
> post.
I don't think so. You can get it with float('nan'), though it might be
worth caching that value if you're going to use it a lot.
- Robert
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---