Created
March 15, 2015 06:55
-
-
Save isoiphone/6e443578ed1d32f22bbd to your computer and use it in GitHub Desktop.
happy pi day
This file contains 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
var qp = 0.0 | |
for var n=0.0; ;++n { | |
qp += (1-(n%2)*2)/(2*n+1) | |
println("\(qp*4)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment