diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-07-25 09:57:38 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-07-25 09:57:38 +0000 |
commit | 0b2ef444e0cf694843141e7b2f833ff1c303c6f8 (patch) | |
tree | 56fa236e888ee17ace918b955de4a8bd61e5184f /lib | |
parent | 9d21bf7a1516d8e6a57198ce71c2cc11a8e0520b (diff) |
added sf_gamma
Diffstat (limited to 'lib')
-rw-r--r-- | lib/GSL/Special.hs | 11 | ||||
-rw-r--r-- | lib/GSL/gsl-aux.h | 1 |
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 | ) |
24 | where | 25 | where |
25 | 26 | ||
@@ -45,6 +46,14 @@ foreign import ccall "gsl-aux.h gsl_sf_erf" erf :: Double -> Double | |||
45 | -} | 46 | -} |
46 | foreign import ccall "gsl-aux.h gsl_sf_erf_Z" erf_Z :: Double -> Double | 47 | foreign 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 | -} | ||
55 | foreign 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 | ||
62 | double gsl_sf_erf(double); | 62 | double gsl_sf_erf(double); |
63 | double gsl_sf_erf_Z(double); | 63 | double gsl_sf_erf_Z(double); |
64 | double gsl_sf_gamma(double); | ||
64 | 65 | ||
65 | int gsl_sf_bessel_J0_e(double, double*); // hmmm... | 66 | int gsl_sf_bessel_J0_e(double, double*); // hmmm... |
66 | int gsl_sf_exp_e10_e(double, double*); // HMMMMM... | 67 | int gsl_sf_exp_e10_e(double, double*); // HMMMMM... |