summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Erf.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-10-01 15:04:16 +0000
committerAlberto Ruiz <aruiz@um.es>2007-10-01 15:04:16 +0000
commitc99b8fd6e3f8a2fb365ec12baf838f864b118ece (patch)
tree11b5b8515861fe88d547253ae10c2182d5fadaf2 /lib/Numeric/GSL/Special/Erf.hs
parent768f08d4134a066d773d56a9c03ae688e3850352 (diff)
LinearAlgebra and GSL moved to Numeric
Diffstat (limited to 'lib/Numeric/GSL/Special/Erf.hs')
-rw-r--r--lib/Numeric/GSL/Special/Erf.hs117
1 files changed, 117 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Erf.hs b/lib/Numeric/GSL/Special/Erf.hs
new file mode 100644
index 0000000..ec73980
--- /dev/null
+++ b/lib/Numeric/GSL/Special/Erf.hs
@@ -0,0 +1,117 @@
1------------------------------------------------------------
2{- |
3Module : Numeric.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.google.com/search?q=gsl_sf_erf.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
13
14-}
15------------------------------------------------------------
16
17module Numeric.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 Numeric.GSL.Special.Internal
34
35-- | wrapper for int gsl_sf_erfc_e(double x,gsl_sf_result* result);
36--
37-- <http://www.google.com/search?q=gsl_sf_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
38erfc_e :: Double -> (Double,Double)
39erfc_e x = createSFR "erfc_e" $ gsl_sf_erfc_e x
40foreign import ccall "erf.h gsl_sf_erfc_e" gsl_sf_erfc_e :: Double -> Ptr Double -> IO(Int)
41
42-- | wrapper for double gsl_sf_erfc(double x);
43--
44-- <http://www.google.com/search?q=gsl_sf_erfc&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
45erfc :: Double -> Double
46erfc = gsl_sf_erfc
47foreign import ccall "erf.h gsl_sf_erfc" gsl_sf_erfc :: Double -> Double
48
49-- | wrapper for int gsl_sf_log_erfc_e(double x,gsl_sf_result* result);
50--
51-- <http://www.google.com/search?q=gsl_sf_log_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
52log_erfc_e :: Double -> (Double,Double)
53log_erfc_e x = createSFR "log_erfc_e" $ gsl_sf_log_erfc_e x
54foreign import ccall "erf.h gsl_sf_log_erfc_e" gsl_sf_log_erfc_e :: Double -> Ptr Double -> IO(Int)
55
56-- | wrapper for double gsl_sf_log_erfc(double x);
57--
58-- <http://www.google.com/search?q=gsl_sf_log_erfc&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
59log_erfc :: Double -> Double
60log_erfc = gsl_sf_log_erfc
61foreign import ccall "erf.h gsl_sf_log_erfc" gsl_sf_log_erfc :: Double -> Double
62
63-- | wrapper for int gsl_sf_erf_e(double x,gsl_sf_result* result);
64--
65-- <http://www.google.com/search?q=gsl_sf_erf_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
66erf_e :: Double -> (Double,Double)
67erf_e x = createSFR "erf_e" $ gsl_sf_erf_e x
68foreign import ccall "erf.h gsl_sf_erf_e" gsl_sf_erf_e :: Double -> Ptr Double -> IO(Int)
69
70-- | wrapper for double gsl_sf_erf(double x);
71--
72-- <http://www.google.com/search?q=gsl_sf_erf&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
73erf :: Double -> Double
74erf = gsl_sf_erf
75foreign import ccall "erf.h gsl_sf_erf" gsl_sf_erf :: Double -> Double
76
77-- | wrapper for int gsl_sf_erf_Z_e(double x,gsl_sf_result* result);
78--
79-- <http://www.google.com/search?q=gsl_sf_erf_Z_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
80erf_Z_e :: Double -> (Double,Double)
81erf_Z_e x = createSFR "erf_Z_e" $ gsl_sf_erf_Z_e x
82foreign import ccall "erf.h gsl_sf_erf_Z_e" gsl_sf_erf_Z_e :: Double -> Ptr Double -> IO(Int)
83
84-- | wrapper for int gsl_sf_erf_Q_e(double x,gsl_sf_result* result);
85--
86-- <http://www.google.com/search?q=gsl_sf_erf_Q_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
87erf_Q_e :: Double -> (Double,Double)
88erf_Q_e x = createSFR "erf_Q_e" $ gsl_sf_erf_Q_e x
89foreign import ccall "erf.h gsl_sf_erf_Q_e" gsl_sf_erf_Q_e :: Double -> Ptr Double -> IO(Int)
90
91-- | wrapper for double gsl_sf_erf_Z(double x);
92--
93-- <http://www.google.com/search?q=gsl_sf_erf_Z&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
94erf_Z :: Double -> Double
95erf_Z = gsl_sf_erf_Z
96foreign import ccall "erf.h gsl_sf_erf_Z" gsl_sf_erf_Z :: Double -> Double
97
98-- | wrapper for double gsl_sf_erf_Q(double x);
99--
100-- <http://www.google.com/search?q=gsl_sf_erf_Q&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
101erf_Q :: Double -> Double
102erf_Q = gsl_sf_erf_Q
103foreign import ccall "erf.h gsl_sf_erf_Q" gsl_sf_erf_Q :: Double -> Double
104
105-- | wrapper for int gsl_sf_hazard_e(double x,gsl_sf_result* result);
106--
107-- <http://www.google.com/search?q=gsl_sf_hazard_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
108hazard_e :: Double -> (Double,Double)
109hazard_e x = createSFR "hazard_e" $ gsl_sf_hazard_e x
110foreign import ccall "erf.h gsl_sf_hazard_e" gsl_sf_hazard_e :: Double -> Ptr Double -> IO(Int)
111
112-- | wrapper for double gsl_sf_hazard(double x);
113--
114-- <http://www.google.com/search?q=gsl_sf_hazard&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
115hazard :: Double -> Double
116hazard = gsl_sf_hazard
117foreign import ccall "erf.h gsl_sf_hazard" gsl_sf_hazard :: Double -> Double