Skip to content

Instantly share code, notes, and snippets.

@isoiphone
Created March 15, 2015 06:55
Show Gist options
  • Save isoiphone/6e443578ed1d32f22bbd to your computer and use it in GitHub Desktop.
Save isoiphone/6e443578ed1d32f22bbd to your computer and use it in GitHub Desktop.
happy pi day
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