Last active
April 20, 2022 12:27
-
-
Save NullDev/6766a1c4aea54988f28db8ecc9ceb6b3 to your computer and use it in GitHub Desktop.
Smol pi approximation in JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(i=p=2;i<1e6;i+=2)p*=i*i/(i*i-1);console.log(p) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment