Created
August 23, 2013 16:24
-
-
Save qoelet/6321268 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-- rewrite after checking the actual formula :X | |
leibs_pi :: Double -> Double | |
leibs_pi n = 4 * sum [(-1.0)**n' / (2.0*n' + 1.0) | n' <- [0.0..(n-1)]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment