[New-bugs-announce] [issue7534] float('nan')**2 != nan. float('nan')**2 error 33 on windows

Marcos Donolo report at bugs.python.org
Thu Dec 17 19:42:56 CET 2009


New submission from Marcos Donolo <mdonolo at vt.edu>:

I am not getting the expected result for the ** operator on windows,
python 2.6
I do...
a=float('nan')
b=a*a
then b is nan which is right but if I do 
b = a**2 I get.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: (33, 'Domain error')

If I do a**2 on ubuntu, python 2.6 I get nan again.

----------
components: Interpreter Core
messages: 96523
nosy: mdonolo at vt.edu, tim_one
severity: normal
status: open
title: float('nan')**2 != nan.  float('nan')**2 error 33 on windows
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7534>
_______________________________________


More information about the New-bugs-announce mailing list