state), scipy 0.4.8/0.4.9, windows xp
Regards,
Vedran Furač
--
http://mail.python.org/mailman/listinfo/python-list
0 is integer in python, and I
need a float.
Regards,
Vedran Furač
--
http://mail.python.org/mailman/listinfo/python-list
Ben Caradoc-Davies wrote:
> Vedran Furač wrote:
>> I think that this results must be the same:
>> In [3]: math.atan2(-0.0,-1)
>> Out[3]: -3.1415926535897931
>> In [4]: math.atan2(-0,-1)
>> Out[4]: 3.1415926535897931
>
> -0 is converted to 0, then to 0.
I think that this results must be the same:
In [3]: math.atan2(-0.0,-1)
Out[3]: -3.1415926535897931
In [4]: math.atan2(-0,-1)
Out[4]: 3.1415926535897931
In [5]: -0 == -0.0
Out[5]: True
This is python 2.4.4c0 on Debian GNU/Linux.
Regards,
Vedran Furač
--
http://mail.python.org/mailman