Can math.atan2 return INF?

Lawrence D’Oliveiro lawrencedo99 at
Wed Jun 22 15:50:50 EDT 2016

On Thursday, June 23, 2016 at 7:17:37 AM UTC+12, Ben Bacarisse wrote:

> The limit of atan2(x, x) is as you describe, but there is no reason to
> pick that one case.

It’s what’s called a “non-removable discontinuity”. The value you pick at that point will be consistent with approaching it from one particular direction, not from any other.

More information about the Python-list mailing list