summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Dawson.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
committerAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
commitb9db4d25d87cd4ab0f493413db92fb41b7eacda9 (patch)
treea447fe6f7e16b3768e912064a033ce257040720e /lib/GSL/Special/Dawson.hs
parentb1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff)
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Dawson.hs')
-rw-r--r--lib/GSL/Special/Dawson.hs31
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{- |
3Module : GSL.Special.Dawson
4Copyright : (c) Alberto Ruiz 2006
5License : GPL-style
6Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional
8Portability : uses ffi
9
10
11
12-}
13------------------------------------------------------------
14
15module GSL.Special.Dawson(
16 dawson_e
17, dawson
18) where
19
20import Foreign(Ptr)
21import GSL.Special.Internal
22
23-- | wrapper for int gsl_sf_dawson_e(double x,gsl_sf_result* result);
24dawson_e :: Double -> (Double,Double)
25dawson_e x = createSFR "dawson_e" $ gsl_sf_dawson_e x
26foreign 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);
29dawson :: Double -> Double
30dawson = gsl_sf_dawson
31foreign import ccall "dawson.h gsl_sf_dawson" gsl_sf_dawson :: Double -> Double