Skip to content
Snippets Groups Projects
Select Git revision
  • 2b0ca73512af8ac1e38d40483156f2212b11e2f2
  • master default protected
  • ao2g15/uos-latex-template-ao2g15-master-patch-59788
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.1
  • v1.0-rc4
  • v2.2-rc1
  • v1.0-rc3
  • v1.0-rc2
  • v2.0
  • v1.0-rc1
  • v0.9
  • v0.9.1
  • v1.0-rc
17 results

ecsdocs.dtx

Blame
  • 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]]