> Thanks, I'm in the same position as you, except that I'm in the position > where I need it use the result, and if it ever returns INF my function will > blow up. But it doesn't look like that can happen. > Doesn't atan2 relies on the C lib math floating point library? At least in CPython. I think (but not 100% sure) that it is implementation dependent, and returns what is returned by clib floating point lib. Since the meaning of atan2 is an angle, it should always be between [-pi,pi]. The only exception maybe when there is a NaN in the arguments. But I cannot think of any interpretation where atan2 would return Inf or -Inf. -- https://mail.python.org/mailman/listinfo/python-list
- Can math.atan2 return INF? Steven D'Aprano
- Re: Can math.atan2 return INF? Pierre-Alain Dorange
- Re: Can math.atan2 return INF? Jussi Piitulainen
- Re: Can math.atan2 return INF? Steven D'Aprano
- Re: Can math.atan2 return INF? Nagy László Zsolt
- Re: Can math.atan2 return INF? Steven D'Aprano
- Re: Can math.atan2 return INF? Pierre-Alain Dorange
- Re: Can math.atan2 return INF? Ben Bacarisse
- Re: Can math.atan2 return INF? Random832
- Re: Can math.atan2 return INF? Pierre-Alain Dorange
- Re: Can math.atan2 return INF? Ben Bacarisse
- Re: Can math.atan2 return ... Lawrence D’Oliveiro
- Re: Can math.atan2 return ... Steven D'Aprano
- Re: Can math.atan2 ret... Dan Sommers
- Re: Can math.atan2 ret... Steven D'Aprano