Calculate value of Pi from given number

The question and answer is well described by Joma in YT https://www.youtube.com/watch?v=pvimAM_SLic

I ran a comparison test between Python and NodeJS version of the code. The difference was significant.

Why is the difference so big? That is for other day to figure out…

Python output:

NodeJs output

--

--