summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Erf.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-07-28 10:44:43 +0000
committerAlberto Ruiz <aruiz@um.es>2007-07-28 10:44:43 +0000
commit774924233c87a20c31a3232cbd01d9bf5170a951 (patch)
tree944efe08c6b0921b5b7e496f9e96e5ca4389e5fb /lib/GSL/Special/Erf.hs
parent34b094b7589bf400114d802549fcba3ce1481683 (diff)
a few automatic wrappers
Diffstat (limited to 'lib/GSL/Special/Erf.hs')
-rw-r--r--lib/GSL/Special/Erf.hs93
1 files changed, 93 insertions, 0 deletions
diff --git a/lib/GSL/Special/Erf.hs b/lib/GSL/Special/Erf.hs
new file mode 100644
index 0000000..30b7817
--- /dev/null
+++ b/lib/GSL/Special/Erf.hs
@@ -0,0 +1,93 @@
1------------------------------------------------------------
2{- |
3Module : GSL.Special.Erf
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.gnu.org/software/gsl/manual/html_node/Error-Functions.html>
13
14-}
15------------------------------------------------------------
16
17module GSL.Special.Erf(
18 erfc_e
19, erfc
20, log_erfc_e
21, log_erfc
22, erf_e
23, erf
24, erf_Z_e
25, erf_Q_e
26, erf_Z
27, erf_Q
28, hazard_e
29, hazard
30) where
31
32import Foreign(Ptr)
33import GSL.Special.Internal
34
35-- | wrapper for int gsl_sf_erfc_e(double x,gsl_sf_result* result);
36erfc_e :: Double -> (Double,Double)
37erfc_e x = createSFR "erfc_e" $ gsl_sf_erfc_e x
38foreign import ccall "erf.h gsl_sf_erfc_e" gsl_sf_erfc_e :: Double -> Ptr Double -> IO(Int)
39
40-- | wrapper for double gsl_sf_erfc(double x);
41erfc :: Double -> Double
42erfc = gsl_sf_erfc
43foreign import ccall "erf.h gsl_sf_erfc" gsl_sf_erfc :: Double -> Double
44
45-- | wrapper for int gsl_sf_log_erfc_e(double x,gsl_sf_result* result);
46log_erfc_e :: Double -> (Double,Double)
47log_erfc_e x = createSFR "log_erfc_e" $ gsl_sf_log_erfc_e x
48foreign import ccall "erf.h gsl_sf_log_erfc_e" gsl_sf_log_erfc_e :: Double -> Ptr Double -> IO(Int)
49
50-- | wrapper for double gsl_sf_log_erfc(double x);
51log_erfc :: Double -> Double
52log_erfc = gsl_sf_log_erfc
53foreign import ccall "erf.h gsl_sf_log_erfc" gsl_sf_log_erfc :: Double -> Double
54
55-- | wrapper for int gsl_sf_erf_e(double x,gsl_sf_result* result);
56erf_e :: Double -> (Double,Double)
57erf_e x = createSFR "erf_e" $ gsl_sf_erf_e x
58foreign import ccall "erf.h gsl_sf_erf_e" gsl_sf_erf_e :: Double -> Ptr Double -> IO(Int)
59
60-- | wrapper for double gsl_sf_erf(double x);
61erf :: Double -> Double
62erf = gsl_sf_erf
63foreign import ccall "erf.h gsl_sf_erf" gsl_sf_erf :: Double -> Double
64
65-- | wrapper for int gsl_sf_erf_Z_e(double x,gsl_sf_result* result);
66erf_Z_e :: Double -> (Double,Double)
67erf_Z_e x = createSFR "erf_Z_e" $ gsl_sf_erf_Z_e x
68foreign import ccall "erf.h gsl_sf_erf_Z_e" gsl_sf_erf_Z_e :: Double -> Ptr Double -> IO(Int)
69
70-- | wrapper for int gsl_sf_erf_Q_e(double x,gsl_sf_result* result);
71erf_Q_e :: Double -> (Double,Double)
72erf_Q_e x = createSFR "erf_Q_e" $ gsl_sf_erf_Q_e x
73foreign import ccall "erf.h gsl_sf_erf_Q_e" gsl_sf_erf_Q_e :: Double -> Ptr Double -> IO(Int)
74
75-- | wrapper for double gsl_sf_erf_Z(double x);
76erf_Z :: Double -> Double
77erf_Z = gsl_sf_erf_Z
78foreign import ccall "erf.h gsl_sf_erf_Z" gsl_sf_erf_Z :: Double -> Double
79
80-- | wrapper for double gsl_sf_erf_Q(double x);
81erf_Q :: Double -> Double
82erf_Q = gsl_sf_erf_Q
83foreign import ccall "erf.h gsl_sf_erf_Q" gsl_sf_erf_Q :: Double -> Double
84
85-- | wrapper for int gsl_sf_hazard_e(double x,gsl_sf_result* result);
86hazard_e :: Double -> (Double,Double)
87hazard_e x = createSFR "hazard_e" $ gsl_sf_hazard_e x
88foreign import ccall "erf.h gsl_sf_hazard_e" gsl_sf_hazard_e :: Double -> Ptr Double -> IO(Int)
89
90-- | wrapper for double gsl_sf_hazard(double x);
91hazard :: Double -> Double
92hazard = gsl_sf_hazard
93foreign import ccall "erf.h gsl_sf_hazard" gsl_sf_hazard :: Double -> Double