[Numpy-discussion] RE: Python 2.2 seriously crippled for numerical computation?

Huaiyu Zhu huaiyu at gauss.almadan.ibm.com
Tue Mar 5 15:46:03 EST 2002


On 05 Mar 2002 11:48:46 -0800, Paul Rubin <phr-n2002a at nightsong.com> wrote:
>> 5. How is 1e200**2 handled?
>> 
>>    Since both 1e-200**2 and 1e200**2 produce the same errno all the time,
>>    but Python still raises OverflowError for 1e200**2 when linked with
>>    -lieee, there must be a separate mechanism at work.  What is that and how
>>    can I override it?  I know this is by design, but I think the design is
>>    dumb (to put it politely). 
>
>What do you want it to do?

return inf.

Huaiyu



More information about the Python-list mailing list