On Wed, 22 Jun 2016 04:32 am, Jussi Piitulainen wrote: > pdora...@pas-de-pub-merci.mac.com (Pierre-Alain Dorange) writes: > >> Steven D'Aprano <st...@pearwood.info> wrote: >> >>> Are there any circumstances where math.atan2(a, b) can return an >>> infinity? [...] > I didn't see any mention of it ever being infinite, which makes sense > given that arcus functions are supposed to return angles. The extreme > case seemed to be the inclusion of -pi as a possible value. > > (I know nothing, I was just curious enough to play with this a bit.)
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. -- Steven -- https://mail.python.org/mailman/listinfo/python-list