Darshan Kanade <kanadedars...@gmail.com> added the comment:

The issue is that pi = k*math.cos(math.radians((90 - 180/k))) is giving wrong 
answer(289.384326...) for larger values of k, say k=2**62, but for smaller 
values say, k=1000000 it is giving correct answer(3.14....)

pi = k*math.sin(math.radians(180/k)) on the other hand gives correct answer for 
any value of k (be it k=2**62 or k=1000000)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to