problem with the 'math' module in 2.5?

Chris chrispatton at gmail.com
Sun Oct 15 00:22:17 EDT 2006


I don't understand what that number came from. My calculator gives me
cos(pi*.5) = 0, and my interpreter gives me cos(pi*0.5) =
6.1230317691118863e-017.

Max Erickson wrote:
> Max Erickson <maxerickson at gmail.com> wrote:
> >
> > Try sin(pi*0.5) to see similar behavior to cos(pi) or cos(pi*2).
> > 
> 
> Uhh, switch that, cos(pi*0.5)...




More information about the Python-list mailing list