diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Erf.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Erf.hs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Numeric/GSL/Special/Erf.hs b/lib/Numeric/GSL/Special/Erf.hs index ec73980..347e621 100644 --- a/lib/Numeric/GSL/Special/Erf.hs +++ b/lib/Numeric/GSL/Special/Erf.hs | |||
@@ -30,6 +30,7 @@ module Numeric.GSL.Special.Erf( | |||
30 | ) where | 30 | ) where |
31 | 31 | ||
32 | import Foreign(Ptr) | 32 | import Foreign(Ptr) |
33 | import Foreign.C.Types(CInt) | ||
33 | import Numeric.GSL.Special.Internal | 34 | import Numeric.GSL.Special.Internal |
34 | 35 | ||
35 | -- | wrapper for int gsl_sf_erfc_e(double x,gsl_sf_result* result); | 36 | -- | wrapper for int gsl_sf_erfc_e(double x,gsl_sf_result* result); |
@@ -37,7 +38,7 @@ import Numeric.GSL.Special.Internal | |||
37 | -- <http://www.google.com/search?q=gsl_sf_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 38 | -- <http://www.google.com/search?q=gsl_sf_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
38 | erfc_e :: Double -> (Double,Double) | 39 | erfc_e :: Double -> (Double,Double) |
39 | erfc_e x = createSFR "erfc_e" $ gsl_sf_erfc_e x | 40 | erfc_e x = createSFR "erfc_e" $ gsl_sf_erfc_e x |
40 | foreign import ccall "erf.h gsl_sf_erfc_e" gsl_sf_erfc_e :: Double -> Ptr Double -> IO(Int) | 41 | foreign import ccall "erf.h gsl_sf_erfc_e" gsl_sf_erfc_e :: Double -> Ptr () -> IO CInt |
41 | 42 | ||
42 | -- | wrapper for double gsl_sf_erfc(double x); | 43 | -- | wrapper for double gsl_sf_erfc(double x); |
43 | -- | 44 | -- |
@@ -51,7 +52,7 @@ foreign import ccall "erf.h gsl_sf_erfc" gsl_sf_erfc :: Double -> Double | |||
51 | -- <http://www.google.com/search?q=gsl_sf_log_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 52 | -- <http://www.google.com/search?q=gsl_sf_log_erfc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
52 | log_erfc_e :: Double -> (Double,Double) | 53 | log_erfc_e :: Double -> (Double,Double) |
53 | log_erfc_e x = createSFR "log_erfc_e" $ gsl_sf_log_erfc_e x | 54 | log_erfc_e x = createSFR "log_erfc_e" $ gsl_sf_log_erfc_e x |
54 | foreign import ccall "erf.h gsl_sf_log_erfc_e" gsl_sf_log_erfc_e :: Double -> Ptr Double -> IO(Int) | 55 | foreign import ccall "erf.h gsl_sf_log_erfc_e" gsl_sf_log_erfc_e :: Double -> Ptr () -> IO CInt |
55 | 56 | ||
56 | -- | wrapper for double gsl_sf_log_erfc(double x); | 57 | -- | wrapper for double gsl_sf_log_erfc(double x); |
57 | -- | 58 | -- |
@@ -65,7 +66,7 @@ foreign import ccall "erf.h gsl_sf_log_erfc" gsl_sf_log_erfc :: Double -> Double | |||
65 | -- <http://www.google.com/search?q=gsl_sf_erf_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 66 | -- <http://www.google.com/search?q=gsl_sf_erf_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
66 | erf_e :: Double -> (Double,Double) | 67 | erf_e :: Double -> (Double,Double) |
67 | erf_e x = createSFR "erf_e" $ gsl_sf_erf_e x | 68 | erf_e x = createSFR "erf_e" $ gsl_sf_erf_e x |
68 | foreign import ccall "erf.h gsl_sf_erf_e" gsl_sf_erf_e :: Double -> Ptr Double -> IO(Int) | 69 | foreign import ccall "erf.h gsl_sf_erf_e" gsl_sf_erf_e :: Double -> Ptr () -> IO CInt |
69 | 70 | ||
70 | -- | wrapper for double gsl_sf_erf(double x); | 71 | -- | wrapper for double gsl_sf_erf(double x); |
71 | -- | 72 | -- |
@@ -79,14 +80,14 @@ foreign import ccall "erf.h gsl_sf_erf" gsl_sf_erf :: Double -> Double | |||
79 | -- <http://www.google.com/search?q=gsl_sf_erf_Z_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 80 | -- <http://www.google.com/search?q=gsl_sf_erf_Z_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
80 | erf_Z_e :: Double -> (Double,Double) | 81 | erf_Z_e :: Double -> (Double,Double) |
81 | erf_Z_e x = createSFR "erf_Z_e" $ gsl_sf_erf_Z_e x | 82 | erf_Z_e x = createSFR "erf_Z_e" $ gsl_sf_erf_Z_e x |
82 | foreign import ccall "erf.h gsl_sf_erf_Z_e" gsl_sf_erf_Z_e :: Double -> Ptr Double -> IO(Int) | 83 | foreign import ccall "erf.h gsl_sf_erf_Z_e" gsl_sf_erf_Z_e :: Double -> Ptr () -> IO CInt |
83 | 84 | ||
84 | -- | wrapper for int gsl_sf_erf_Q_e(double x,gsl_sf_result* result); | 85 | -- | wrapper for int gsl_sf_erf_Q_e(double x,gsl_sf_result* result); |
85 | -- | 86 | -- |
86 | -- <http://www.google.com/search?q=gsl_sf_erf_Q_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 87 | -- <http://www.google.com/search?q=gsl_sf_erf_Q_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
87 | erf_Q_e :: Double -> (Double,Double) | 88 | erf_Q_e :: Double -> (Double,Double) |
88 | erf_Q_e x = createSFR "erf_Q_e" $ gsl_sf_erf_Q_e x | 89 | erf_Q_e x = createSFR "erf_Q_e" $ gsl_sf_erf_Q_e x |
89 | foreign import ccall "erf.h gsl_sf_erf_Q_e" gsl_sf_erf_Q_e :: Double -> Ptr Double -> IO(Int) | 90 | foreign import ccall "erf.h gsl_sf_erf_Q_e" gsl_sf_erf_Q_e :: Double -> Ptr () -> IO CInt |
90 | 91 | ||
91 | -- | wrapper for double gsl_sf_erf_Z(double x); | 92 | -- | wrapper for double gsl_sf_erf_Z(double x); |
92 | -- | 93 | -- |
@@ -107,7 +108,7 @@ foreign import ccall "erf.h gsl_sf_erf_Q" gsl_sf_erf_Q :: Double -> Double | |||
107 | -- <http://www.google.com/search?q=gsl_sf_hazard_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 108 | -- <http://www.google.com/search?q=gsl_sf_hazard_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
108 | hazard_e :: Double -> (Double,Double) | 109 | hazard_e :: Double -> (Double,Double) |
109 | hazard_e x = createSFR "hazard_e" $ gsl_sf_hazard_e x | 110 | hazard_e x = createSFR "hazard_e" $ gsl_sf_hazard_e x |
110 | foreign import ccall "erf.h gsl_sf_hazard_e" gsl_sf_hazard_e :: Double -> Ptr Double -> IO(Int) | 111 | foreign import ccall "erf.h gsl_sf_hazard_e" gsl_sf_hazard_e :: Double -> Ptr () -> IO CInt |
111 | 112 | ||
112 | -- | wrapper for double gsl_sf_hazard(double x); | 113 | -- | wrapper for double gsl_sf_hazard(double x); |
113 | -- | 114 | -- |