Can math.atan2 return INF?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Thu Jun 23 02:45:08 EDT 2016


On Thursday 23 June 2016 14:40, Dan Sommers wrote:

>> Since x == y, the answer should be the same as for any other pair of x == y.
> 
> When x == y == 0, then atan2(y, x) is 0.

/s/any other pair of x == y/any other pair of x y except for zero/

:-P


Zero is exceptional in many ways.


-- 
Steve




More information about the Python-list mailing list