Can math.atan2 return INF?
Dan Sommers
dan at tombstonezero.net
Thu Jun 23 00:40:32 EDT 2016
More information about the Python-list mailing list
Thu Jun 23 00:40:32 EDT 2016
- Previous message (by thread): Can math.atan2 return INF?
- Next message (by thread): Can math.atan2 return INF?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 23 Jun 2016 13:59:46 +1000, Steven D'Aprano wrote: > Given: > > x = INF > y = INF > assert x == y > > there is a reason to pick atan2(y, x) = pi/4: > > 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.
- Previous message (by thread): Can math.atan2 return INF?
- Next message (by thread): Can math.atan2 return INF?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list