Select Git revision
computeHistoricalMonthly.Rmd
-
Ben Anderson authored
re-arranged plots so clear which model is being used; saves out plots without model labels for papers etc
Ben Anderson authoredre-arranged plots so clear which model is being used; saves out plots without model labels for papers etc
exA2.hs 223 B
approxPi :: Int -> Double
approxPi n | n <= 0 = error "negative numbers or 0 cannot be used for approximations of pi"
| otherwise = 2 * sum [product [1..a] / product [1,3..2 * a + 1] | a <- [0..fromIntegral n-1]]