[issue46444] Wrong value of pi for larger values using math.cos() function

Serhiy Storchaka report at bugs.python.org
Thu Jan 20 01:39:49 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Arguments of cos() and sin() should be in radians, not in degrees. So the correct formulas are k*cos(pi/2-pi/k) and k*sin(pi/k). They are useless because to find the pi approximation you need to know pi.

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46444>
_______________________________________


More information about the Python-bugs-list mailing list