diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-07-29 15:43:21 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-07-29 15:43:21 +0000 |
commit | b9db4d25d87cd4ab0f493413db92fb41b7eacda9 (patch) | |
tree | a447fe6f7e16b3768e912064a033ce257040720e /lib/GSL/Special/Dawson.hs | |
parent | b1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff) |
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Dawson.hs')
-rw-r--r-- | lib/GSL/Special/Dawson.hs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/GSL/Special/Dawson.hs b/lib/GSL/Special/Dawson.hs new file mode 100644 index 0000000..62d0baf --- /dev/null +++ b/lib/GSL/Special/Dawson.hs | |||
@@ -0,0 +1,31 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : 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 | |||
11 | |||
12 | -} | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module GSL.Special.Dawson( | ||
16 | dawson_e | ||
17 | , dawson | ||
18 | ) where | ||
19 | |||
20 | import Foreign(Ptr) | ||
21 | import GSL.Special.Internal | ||
22 | |||
23 | -- | wrapper for int gsl_sf_dawson_e(double x,gsl_sf_result* result); | ||
24 | dawson_e :: Double -> (Double,Double) | ||
25 | dawson_e x = createSFR "dawson_e" $ gsl_sf_dawson_e x | ||
26 | foreign import ccall "dawson.h gsl_sf_dawson_e" gsl_sf_dawson_e :: Double -> Ptr Double -> IO(Int) | ||
27 | |||
28 | -- | wrapper for double gsl_sf_dawson(double x); | ||
29 | dawson :: Double -> Double | ||
30 | dawson = gsl_sf_dawson | ||
31 | foreign import ccall "dawson.h gsl_sf_dawson" gsl_sf_dawson :: Double -> Double | ||