summaryrefslogtreecommitdiff
path: root/lib/GSL/Special.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GSL/Special.hs')
-rw-r--r--lib/GSL/Special.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/GSL/Special.hs b/lib/GSL/Special.hs
index 643c499..fec96eb 100644
--- a/lib/GSL/Special.hs
+++ b/lib/GSL/Special.hs
@@ -19,7 +19,8 @@ module GSL.Special (
19 erf, 19 erf,
20 erf_Z, 20 erf_Z,
21 bessel_J0_e, 21 bessel_J0_e,
22 exp_e10_e 22 exp_e10_e,
23 gamma
23) 24)
24where 25where
25 26
@@ -45,6 +46,14 @@ foreign import ccall "gsl-aux.h gsl_sf_erf" erf :: Double -> Double
45-} 46-}
46foreign import ccall "gsl-aux.h gsl_sf_erf_Z" erf_Z :: Double -> Double 47foreign import ccall "gsl-aux.h gsl_sf_erf_Z" erf_Z :: Double -> Double
47 48
49{- | The gamma function (/gsl_sf_gamma/), described in <http://www.gnu.org/software/gsl/manual/html_node/Gamma-Functions.html>
50
51>> gamma 5
52>24.0
53
54-}
55foreign import ccall "gsl-aux.h gsl_sf_gamma" gamma :: Double -> Double
56
48---------------------------------------------------------------- 57----------------------------------------------------------------
49-- the sf_result struct is equivalent to an array of two doubles 58-- the sf_result struct is equivalent to an array of two doubles
50 59