[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can math.atan2 return INF?

Steven D'Aprano <steve at pearwood.info> wrote:

> py> math.atan2(NAN, 0)
> nan
> I think that the only way it will return a NAN is if passed a NAN.

yes of course if you pass an invalid argument (NAN is not a real value,
atan2 except coordinate x,y), the result would be invalid...

Pierre-Alain Dorange        <http://microwar.sourceforge.net/>

Ce message est sous licence Creative Commons "by-nc-sa-2.0"