Skip to content

Instantly share code, notes, and snippets.

@NOLFXceptMe
Created November 22, 2015 11:40
Show Gist options
  • Save NOLFXceptMe/42110c593a9aa43c1820 to your computer and use it in GitHub Desktop.
Save NOLFXceptMe/42110c593a9aa43c1820 to your computer and use it in GitHub Desktop.
def willis_pi(n):
pi = 2.0
for i in xrange(1, n):
k = 4 * i * i
pi = (pi * k)/(k-1)
print pi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment