8000 GitHub - user35007/PiCode: Short code snippets for computing pi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

user35007/PiCode

 
 

Repository files navigation

Pi Day

This is a (soon to be organized) collection of code that I've written over the years for comuting pi in various languages and methods. These are all designed to be short so that I could embed them into tweets and facebook posts.

Here's one for computing Pi in Perl.

perl -e '$pi=0;for(0..1000000){$pi+=(4.0/($_*4.0+1))-(4.0/($_*4.0+3))}print "$pi\n"'

About

Short code snippets for computing pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.3%
  • C++ 4.3%
  • Scala 4.0%
  • Ruby 3.4%
  • MATLAB 1.0%
0