This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author darshan.kanade
Recipients darshan.kanade, serhiy.storchaka
Date 2022-01-20.07:17:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642663022.19.0.867063257484.issue46444@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2022-01-20 07:17:02darshan.kanadesetrecipients: + darshan.kanade, serhiy.storchaka
2022-01-20 07:17:02darshan.kanadesetmessageid: <1642663022.19.0.867063257484.issue46444@roundup.psfhosted.org>
2022-01-20 07:17:02darshan.kanadelinkissue46444 messages
2022-01-20 07:17:02darshan.kanadecreate