summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Dawson.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Special/Dawson.hs')
-rw-r--r--lib/Numeric/GSL/Special/Dawson.hs37
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{- |
3Module : Numeric.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
10Wrappers 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
17module Numeric.GSL.Special.Dawson(
18 dawson_e
19, dawson
20) where
21
22import Foreign(Ptr)
23import 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>
28dawson_e :: Double -> (Double,Double)
29dawson_e x = createSFR "dawson_e" $ gsl_sf_dawson_e x
30foreign 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>
35dawson :: Double -> Double
36dawson = gsl_sf_dawson
37foreign import ccall "dawson.h gsl_sf_dawson" gsl_sf_dawson :: Double -> Double