Last active
August 29, 2015 14:05
-
-
Save zaersk/71d5869282d4d9da7b29 to your computer and use it in GitHub Desktop.
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
func ζ(s:Int) -> Double { | |
var i : Double = Double() | |
var sum : Double = Double() | |
for (var i = 1.0; i < Double.infinity; i++) { | |
sum += (1 / pow(i, Double(s))) | |
} | |
return sum | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment