degrees and radians.
Fernando PĂ©rez
fperez528 at yahoo.com
Mon May 6 01:53:55 EDT 2002
Tim Hammerquist wrote:
> Nice. Should be more than enough, considering many professors accept
> (22/3) as a reasonable value (~3.142857...)
>
you mean 22/7:
In [1]: 22/7.
Out[1]: 3.1428571428571428
In [2]: pi
Out[2]: 3.1415926535897931
In [3]: 100*(__-_)/_
Out[3]: 0.040249943477070081
It's actually pretty good, .04% error is enough for most day to day things.
Cheers,
f.
More information about the Python-list
mailing list