I tried this expecting an exception<br><br>In [2]: math.tan(math.pi/2)<br>Out[2]: 16331778728383844.0<br><br>so I thought maybe that was a float limit which it probably is as you get weird results from higher values but it seems strange that it tries to run with it.
<br><br>In [5]: 16331778728383844.0<br>Out[5]: 16331778728383844.0<br><br>In [6]: 16331778728383845.0<br>Out[6]: 16331778728383844.0<br><br>In [7]: 16331778728383846.0<br>Out[7]: 16331778728383846.0<br><br>In [8]: 16331778728383845.0
<br>Out[8]: 16331778728383844.0<br><br>In [9]: 16331778728383847.0<br>Out[9]: 16331778728383848.0<br><br>In [10]: 16331778728383848.0<br>Out[10]: 16331778728383848.0<br><br>weird huh?<br>