diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
commit | 54bcc1fc1e0f9676cb10f627f412eeeea34b5d2c (patch) | |
tree | 3983a0046ce08a2390c5a495aae60fd419c58986 /lib/Numeric/GSL/Special/Gamma.hs | |
parent | aae45de54aca92c5f0f013e46c6d6f65508d76f5 (diff) |
created package hmatrix-special
Diffstat (limited to 'lib/Numeric/GSL/Special/Gamma.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Gamma.hs | 236 |
1 files changed, 0 insertions, 236 deletions
diff --git a/lib/Numeric/GSL/Special/Gamma.hs b/lib/Numeric/GSL/Special/Gamma.hs deleted file mode 100644 index 03b39c4..0000000 --- a/lib/Numeric/GSL/Special/Gamma.hs +++ /dev/null | |||
@@ -1,236 +0,0 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Gamma | ||
4 | -- Copyright : (c) Alberto Ruiz 2006 | ||
5 | -- License : GPL | ||
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | -- Stability : provisional | ||
8 | -- Portability : uses ffi | ||
9 | -- | ||
10 | -- Wrappers for selected functions described at: | ||
11 | -- | ||
12 | -- <http://www.google.com/search?q=gsl_sf_gamma.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module Numeric.GSL.Special.Gamma( | ||
16 | lngamma_e | ||
17 | , lngamma | ||
18 | , gamma_e | ||
19 | , gamma | ||
20 | , gammastar_e | ||
21 | , gammastar | ||
22 | , gammainv_e | ||
23 | , gammainv | ||
24 | , taylorcoeff_e | ||
25 | , taylorcoeff | ||
26 | , fact_e | ||
27 | , fact | ||
28 | , doublefact_e | ||
29 | , doublefact | ||
30 | , lnfact_e | ||
31 | , lnfact | ||
32 | , lndoublefact_e | ||
33 | , lndoublefact | ||
34 | , lnchoose_e | ||
35 | , lnchoose | ||
36 | , choose_e | ||
37 | , choose | ||
38 | , lnpoch_e | ||
39 | , lnpoch | ||
40 | , poch_e | ||
41 | , poch | ||
42 | , pochrel_e | ||
43 | , pochrel | ||
44 | , gamma_inc_Q_e | ||
45 | , gamma_inc_Q | ||
46 | , gamma_inc_P_e | ||
47 | , gamma_inc_P | ||
48 | , gamma_inc_e | ||
49 | , gamma_inc | ||
50 | , lnbeta_e | ||
51 | , lnbeta | ||
52 | , beta_e | ||
53 | , beta | ||
54 | , beta_inc_e | ||
55 | , beta_inc | ||
56 | ) where | ||
57 | |||
58 | import Foreign(Ptr) | ||
59 | import Foreign.C.Types(CInt) | ||
60 | import Numeric.GSL.Special.Internal | ||
61 | |||
62 | lngamma_e :: Double -> (Double,Double) | ||
63 | lngamma_e x = createSFR "lngamma_e" $ gsl_sf_lngamma_e x | ||
64 | foreign import ccall SAFE_CHEAP "gsl_sf_lngamma_e" gsl_sf_lngamma_e :: Double -> Ptr () -> IO CInt | ||
65 | |||
66 | lngamma :: Double -> Double | ||
67 | lngamma = gsl_sf_lngamma | ||
68 | foreign import ccall SAFE_CHEAP "gsl_sf_lngamma" gsl_sf_lngamma :: Double -> Double | ||
69 | |||
70 | lngamma_sgn_e :: Double -> Ptr () -> Ptr Double -> CInt | ||
71 | lngamma_sgn_e = gsl_sf_lngamma_sgn_e | ||
72 | foreign import ccall SAFE_CHEAP "gsl_sf_lngamma_sgn_e" gsl_sf_lngamma_sgn_e :: Double -> Ptr () -> Ptr Double -> CInt | ||
73 | |||
74 | gamma_e :: Double -> (Double,Double) | ||
75 | gamma_e x = createSFR "gamma_e" $ gsl_sf_gamma_e x | ||
76 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_e" gsl_sf_gamma_e :: Double -> Ptr () -> IO CInt | ||
77 | |||
78 | gamma :: Double -> Double | ||
79 | gamma = gsl_sf_gamma | ||
80 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma" gsl_sf_gamma :: Double -> Double | ||
81 | |||
82 | gammastar_e :: Double -> (Double,Double) | ||
83 | gammastar_e x = createSFR "gammastar_e" $ gsl_sf_gammastar_e x | ||
84 | foreign import ccall SAFE_CHEAP "gsl_sf_gammastar_e" gsl_sf_gammastar_e :: Double -> Ptr () -> IO CInt | ||
85 | |||
86 | gammastar :: Double -> Double | ||
87 | gammastar = gsl_sf_gammastar | ||
88 | foreign import ccall SAFE_CHEAP "gsl_sf_gammastar" gsl_sf_gammastar :: Double -> Double | ||
89 | |||
90 | gammainv_e :: Double -> (Double,Double) | ||
91 | gammainv_e x = createSFR "gammainv_e" $ gsl_sf_gammainv_e x | ||
92 | foreign import ccall SAFE_CHEAP "gsl_sf_gammainv_e" gsl_sf_gammainv_e :: Double -> Ptr () -> IO CInt | ||
93 | |||
94 | gammainv :: Double -> Double | ||
95 | gammainv = gsl_sf_gammainv | ||
96 | foreign import ccall SAFE_CHEAP "gsl_sf_gammainv" gsl_sf_gammainv :: Double -> Double | ||
97 | |||
98 | lngamma_complex_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
99 | lngamma_complex_e zr zi lnr = createSFR "lngamma_complex_e" $ gsl_sf_lngamma_complex_e zr zi lnr | ||
100 | foreign import ccall SAFE_CHEAP "gsl_sf_lngamma_complex_e" gsl_sf_lngamma_complex_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
101 | |||
102 | taylorcoeff_e :: CInt -> Double -> (Double,Double) | ||
103 | taylorcoeff_e n x = createSFR "taylorcoeff_e" $ gsl_sf_taylorcoeff_e n x | ||
104 | foreign import ccall SAFE_CHEAP "gsl_sf_taylorcoeff_e" gsl_sf_taylorcoeff_e :: CInt -> Double -> Ptr () -> IO CInt | ||
105 | |||
106 | taylorcoeff :: CInt -> Double -> Double | ||
107 | taylorcoeff = gsl_sf_taylorcoeff | ||
108 | foreign import ccall SAFE_CHEAP "gsl_sf_taylorcoeff" gsl_sf_taylorcoeff :: CInt -> Double -> Double | ||
109 | |||
110 | fact_e :: CInt -> (Double,Double) | ||
111 | fact_e n = createSFR "fact_e" $ gsl_sf_fact_e n | ||
112 | foreign import ccall SAFE_CHEAP "gsl_sf_fact_e" gsl_sf_fact_e :: CInt -> Ptr () -> IO CInt | ||
113 | |||
114 | fact :: CInt -> Double | ||
115 | fact = gsl_sf_fact | ||
116 | foreign import ccall SAFE_CHEAP "gsl_sf_fact" gsl_sf_fact :: CInt -> Double | ||
117 | |||
118 | doublefact_e :: CInt -> (Double,Double) | ||
119 | doublefact_e n = createSFR "doublefact_e" $ gsl_sf_doublefact_e n | ||
120 | foreign import ccall SAFE_CHEAP "gsl_sf_doublefact_e" gsl_sf_doublefact_e :: CInt -> Ptr () -> IO CInt | ||
121 | |||
122 | doublefact :: CInt -> Double | ||
123 | doublefact = gsl_sf_doublefact | ||
124 | foreign import ccall SAFE_CHEAP "gsl_sf_doublefact" gsl_sf_doublefact :: CInt -> Double | ||
125 | |||
126 | lnfact_e :: CInt -> (Double,Double) | ||
127 | lnfact_e n = createSFR "lnfact_e" $ gsl_sf_lnfact_e n | ||
128 | foreign import ccall SAFE_CHEAP "gsl_sf_lnfact_e" gsl_sf_lnfact_e :: CInt -> Ptr () -> IO CInt | ||
129 | |||
130 | lnfact :: CInt -> Double | ||
131 | lnfact = gsl_sf_lnfact | ||
132 | foreign import ccall SAFE_CHEAP "gsl_sf_lnfact" gsl_sf_lnfact :: CInt -> Double | ||
133 | |||
134 | lndoublefact_e :: CInt -> (Double,Double) | ||
135 | lndoublefact_e n = createSFR "lndoublefact_e" $ gsl_sf_lndoublefact_e n | ||
136 | foreign import ccall SAFE_CHEAP "gsl_sf_lndoublefact_e" gsl_sf_lndoublefact_e :: CInt -> Ptr () -> IO CInt | ||
137 | |||
138 | lndoublefact :: CInt -> Double | ||
139 | lndoublefact = gsl_sf_lndoublefact | ||
140 | foreign import ccall SAFE_CHEAP "gsl_sf_lndoublefact" gsl_sf_lndoublefact :: CInt -> Double | ||
141 | |||
142 | lnchoose_e :: CInt -> CInt -> (Double,Double) | ||
143 | lnchoose_e n m = createSFR "lnchoose_e" $ gsl_sf_lnchoose_e n m | ||
144 | foreign import ccall SAFE_CHEAP "gsl_sf_lnchoose_e" gsl_sf_lnchoose_e :: CInt -> CInt -> Ptr () -> IO CInt | ||
145 | |||
146 | lnchoose :: CInt -> CInt -> Double | ||
147 | lnchoose = gsl_sf_lnchoose | ||
148 | foreign import ccall SAFE_CHEAP "gsl_sf_lnchoose" gsl_sf_lnchoose :: CInt -> CInt -> Double | ||
149 | |||
150 | choose_e :: CInt -> CInt -> (Double,Double) | ||
151 | choose_e n m = createSFR "choose_e" $ gsl_sf_choose_e n m | ||
152 | foreign import ccall SAFE_CHEAP "gsl_sf_choose_e" gsl_sf_choose_e :: CInt -> CInt -> Ptr () -> IO CInt | ||
153 | |||
154 | choose :: CInt -> CInt -> Double | ||
155 | choose = gsl_sf_choose | ||
156 | foreign import ccall SAFE_CHEAP "gsl_sf_choose" gsl_sf_choose :: CInt -> CInt -> Double | ||
157 | |||
158 | lnpoch_e :: Double -> Double -> (Double,Double) | ||
159 | lnpoch_e a x = createSFR "lnpoch_e" $ gsl_sf_lnpoch_e a x | ||
160 | foreign import ccall SAFE_CHEAP "gsl_sf_lnpoch_e" gsl_sf_lnpoch_e :: Double -> Double -> Ptr () -> IO CInt | ||
161 | |||
162 | lnpoch :: Double -> Double -> Double | ||
163 | lnpoch = gsl_sf_lnpoch | ||
164 | foreign import ccall SAFE_CHEAP "gsl_sf_lnpoch" gsl_sf_lnpoch :: Double -> Double -> Double | ||
165 | |||
166 | lnpoch_sgn_e :: Double -> Double -> Ptr () -> Ptr Double -> CInt | ||
167 | lnpoch_sgn_e = gsl_sf_lnpoch_sgn_e | ||
168 | foreign import ccall SAFE_CHEAP "gsl_sf_lnpoch_sgn_e" gsl_sf_lnpoch_sgn_e :: Double -> Double -> Ptr () -> Ptr Double -> CInt | ||
169 | |||
170 | poch_e :: Double -> Double -> (Double,Double) | ||
171 | poch_e a x = createSFR "poch_e" $ gsl_sf_poch_e a x | ||
172 | foreign import ccall SAFE_CHEAP "gsl_sf_poch_e" gsl_sf_poch_e :: Double -> Double -> Ptr () -> IO CInt | ||
173 | |||
174 | poch :: Double -> Double -> Double | ||
175 | poch = gsl_sf_poch | ||
176 | foreign import ccall SAFE_CHEAP "gsl_sf_poch" gsl_sf_poch :: Double -> Double -> Double | ||
177 | |||
178 | pochrel_e :: Double -> Double -> (Double,Double) | ||
179 | pochrel_e a x = createSFR "pochrel_e" $ gsl_sf_pochrel_e a x | ||
180 | foreign import ccall SAFE_CHEAP "gsl_sf_pochrel_e" gsl_sf_pochrel_e :: Double -> Double -> Ptr () -> IO CInt | ||
181 | |||
182 | pochrel :: Double -> Double -> Double | ||
183 | pochrel = gsl_sf_pochrel | ||
184 | foreign import ccall SAFE_CHEAP "gsl_sf_pochrel" gsl_sf_pochrel :: Double -> Double -> Double | ||
185 | |||
186 | gamma_inc_Q_e :: Double -> Double -> (Double,Double) | ||
187 | gamma_inc_Q_e a x = createSFR "gamma_inc_Q_e" $ gsl_sf_gamma_inc_Q_e a x | ||
188 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc_Q_e" gsl_sf_gamma_inc_Q_e :: Double -> Double -> Ptr () -> IO CInt | ||
189 | |||
190 | gamma_inc_Q :: Double -> Double -> Double | ||
191 | gamma_inc_Q = gsl_sf_gamma_inc_Q | ||
192 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc_Q" gsl_sf_gamma_inc_Q :: Double -> Double -> Double | ||
193 | |||
194 | gamma_inc_P_e :: Double -> Double -> (Double,Double) | ||
195 | gamma_inc_P_e a x = createSFR "gamma_inc_P_e" $ gsl_sf_gamma_inc_P_e a x | ||
196 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc_P_e" gsl_sf_gamma_inc_P_e :: Double -> Double -> Ptr () -> IO CInt | ||
197 | |||
198 | gamma_inc_P :: Double -> Double -> Double | ||
199 | gamma_inc_P = gsl_sf_gamma_inc_P | ||
200 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc_P" gsl_sf_gamma_inc_P :: Double -> Double -> Double | ||
201 | |||
202 | gamma_inc_e :: Double -> Double -> (Double,Double) | ||
203 | gamma_inc_e a x = createSFR "gamma_inc_e" $ gsl_sf_gamma_inc_e a x | ||
204 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc_e" gsl_sf_gamma_inc_e :: Double -> Double -> Ptr () -> IO CInt | ||
205 | |||
206 | gamma_inc :: Double -> Double -> Double | ||
207 | gamma_inc = gsl_sf_gamma_inc | ||
208 | foreign import ccall SAFE_CHEAP "gsl_sf_gamma_inc" gsl_sf_gamma_inc :: Double -> Double -> Double | ||
209 | |||
210 | lnbeta_e :: Double -> Double -> (Double,Double) | ||
211 | lnbeta_e a b = createSFR "lnbeta_e" $ gsl_sf_lnbeta_e a b | ||
212 | foreign import ccall SAFE_CHEAP "gsl_sf_lnbeta_e" gsl_sf_lnbeta_e :: Double -> Double -> Ptr () -> IO CInt | ||
213 | |||
214 | lnbeta :: Double -> Double -> Double | ||
215 | lnbeta = gsl_sf_lnbeta | ||
216 | foreign import ccall SAFE_CHEAP "gsl_sf_lnbeta" gsl_sf_lnbeta :: Double -> Double -> Double | ||
217 | |||
218 | lnbeta_sgn_e :: Double -> Double -> Ptr () -> Ptr Double -> CInt | ||
219 | lnbeta_sgn_e = gsl_sf_lnbeta_sgn_e | ||
220 | foreign import ccall SAFE_CHEAP "gsl_sf_lnbeta_sgn_e" gsl_sf_lnbeta_sgn_e :: Double -> Double -> Ptr () -> Ptr Double -> CInt | ||
221 | |||
222 | beta_e :: Double -> Double -> (Double,Double) | ||
223 | beta_e a b = createSFR "beta_e" $ gsl_sf_beta_e a b | ||
224 | foreign import ccall SAFE_CHEAP "gsl_sf_beta_e" gsl_sf_beta_e :: Double -> Double -> Ptr () -> IO CInt | ||
225 | |||
226 | beta :: Double -> Double -> Double | ||
227 | beta = gsl_sf_beta | ||
228 | foreign import ccall SAFE_CHEAP "gsl_sf_beta" gsl_sf_beta :: Double -> Double -> Double | ||
229 | |||
230 | beta_inc_e :: Double -> Double -> Double -> (Double,Double) | ||
231 | beta_inc_e a b x = createSFR "beta_inc_e" $ gsl_sf_beta_inc_e a b x | ||
232 | foreign import ccall SAFE_CHEAP "gsl_sf_beta_inc_e" gsl_sf_beta_inc_e :: Double -> Double -> Double -> Ptr () -> IO CInt | ||
233 | |||
234 | beta_inc :: Double -> Double -> Double -> Double | ||
235 | beta_inc = gsl_sf_beta_inc | ||
236 | foreign import ccall SAFE_CHEAP "gsl_sf_beta_inc" gsl_sf_beta_inc :: Double -> Double -> Double -> Double | ||