diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Dawson.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Dawson.hs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Dawson.hs b/lib/Numeric/GSL/Special/Dawson.hs new file mode 100644 index 0000000..1d77a2b --- /dev/null +++ b/lib/Numeric/GSL/Special/Dawson.hs | |||
@@ -0,0 +1,37 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : Numeric.GSL.Special.Dawson | ||
4 | Copyright : (c) Alberto Ruiz 2006 | ||
5 | License : GPL-style | ||
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | Stability : provisional | ||
8 | Portability : uses ffi | ||
9 | |||
10 | Wrappers for selected functions described at: | ||
11 | |||
12 | <http://www.google.com/search?q=gsl_sf_dawson.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | ||
16 | |||
17 | module Numeric.GSL.Special.Dawson( | ||
18 | dawson_e | ||
19 | , dawson | ||
20 | ) where | ||
21 | |||
22 | import Foreign(Ptr) | ||
23 | import Numeric.GSL.Special.Internal | ||
24 | |||
25 | -- | wrapper for int gsl_sf_dawson_e(double x,gsl_sf_result* result); | ||
26 | -- | ||
27 | -- <http://www.google.com/search?q=gsl_sf_dawson_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
28 | dawson_e :: Double -> (Double,Double) | ||
29 | dawson_e x = createSFR "dawson_e" $ gsl_sf_dawson_e x | ||
30 | foreign import ccall "dawson.h gsl_sf_dawson_e" gsl_sf_dawson_e :: Double -> Ptr Double -> IO(Int) | ||
31 | |||
32 | -- | wrapper for double gsl_sf_dawson(double x); | ||
33 | -- | ||
34 | -- <http://www.google.com/search?q=gsl_sf_dawson&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
35 | dawson :: Double -> Double | ||
36 | dawson = gsl_sf_dawson | ||
37 | foreign import ccall "dawson.h gsl_sf_dawson" gsl_sf_dawson :: Double -> Double | ||