summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-07-25 09:57:38 +0000
committerAlberto Ruiz <aruiz@um.es>2007-07-25 09:57:38 +0000
commit0b2ef444e0cf694843141e7b2f833ff1c303c6f8 (patch)
tree56fa236e888ee17ace918b955de4a8bd61e5184f /lib
parent9d21bf7a1516d8e6a57198ce71c2cc11a8e0520b (diff)
added sf_gamma
Diffstat (limited to 'lib')
-rw-r--r--lib/GSL/Special.hs11
-rw-r--r--lib/GSL/gsl-aux.h1
2 files changed, 11 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
diff --git a/lib/GSL/gsl-aux.h b/lib/GSL/gsl-aux.h
index 89bd75e..2be07c1 100644
--- a/lib/GSL/gsl-aux.h
+++ b/lib/GSL/gsl-aux.h
@@ -61,6 +61,7 @@ int deriv(int code, double f(double, void*), double x, double h, double * result
61 61
62double gsl_sf_erf(double); 62double gsl_sf_erf(double);
63double gsl_sf_erf_Z(double); 63double gsl_sf_erf_Z(double);
64double gsl_sf_gamma(double);
64 65
65int gsl_sf_bessel_J0_e(double, double*); // hmmm... 66int gsl_sf_bessel_J0_e(double, double*); // hmmm...
66int gsl_sf_exp_e10_e(double, double*); // HMMMMM... 67int gsl_sf_exp_e10_e(double, double*); // HMMMMM...