diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Expint.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Expint.hs | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Expint.hs b/lib/Numeric/GSL/Special/Expint.hs new file mode 100644 index 0000000..9882d09 --- /dev/null +++ b/lib/Numeric/GSL/Special/Expint.hs | |||
@@ -0,0 +1,213 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : Numeric.GSL.Special.Expint | ||
4 | Copyright : (c) Alberto Ruiz 2006 | ||
5 | License : GPL-style | ||
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_expint.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | ||
16 | |||
17 | module Numeric.GSL.Special.Expint( | ||
18 | expint_E1_e | ||
19 | , expint_E1 | ||
20 | , expint_E2_e | ||
21 | , expint_E2 | ||
22 | , expint_E1_scaled_e | ||
23 | , expint_E1_scaled | ||
24 | , expint_E2_scaled_e | ||
25 | , expint_E2_scaled | ||
26 | , expint_Ei_e | ||
27 | , expint_Ei | ||
28 | , expint_Ei_scaled_e | ||
29 | , expint_Ei_scaled | ||
30 | , shi_e | ||
31 | , shi | ||
32 | , chi_e | ||
33 | , chi | ||
34 | , expint_3_e | ||
35 | , expint_3 | ||
36 | , si_e | ||
37 | , si | ||
38 | , ci_e | ||
39 | , ci | ||
40 | , atanint_e | ||
41 | , atanint | ||
42 | ) where | ||
43 | |||
44 | import Foreign(Ptr) | ||
45 | import Numeric.GSL.Special.Internal | ||
46 | |||
47 | -- | wrapper for int gsl_sf_expint_E1_e(double x,gsl_sf_result* result); | ||
48 | -- | ||
49 | -- <http://www.google.com/search?q=gsl_sf_expint_E1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
50 | expint_E1_e :: Double -> (Double,Double) | ||
51 | expint_E1_e x = createSFR "expint_E1_e" $ gsl_sf_expint_E1_e x | ||
52 | foreign import ccall "expint.h gsl_sf_expint_E1_e" gsl_sf_expint_E1_e :: Double -> Ptr Double -> IO(Int) | ||
53 | |||
54 | -- | wrapper for double gsl_sf_expint_E1(double x); | ||
55 | -- | ||
56 | -- <http://www.google.com/search?q=gsl_sf_expint_E1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
57 | expint_E1 :: Double -> Double | ||
58 | expint_E1 = gsl_sf_expint_E1 | ||
59 | foreign import ccall "expint.h gsl_sf_expint_E1" gsl_sf_expint_E1 :: Double -> Double | ||
60 | |||
61 | -- | wrapper for int gsl_sf_expint_E2_e(double x,gsl_sf_result* result); | ||
62 | -- | ||
63 | -- <http://www.google.com/search?q=gsl_sf_expint_E2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
64 | expint_E2_e :: Double -> (Double,Double) | ||
65 | expint_E2_e x = createSFR "expint_E2_e" $ gsl_sf_expint_E2_e x | ||
66 | foreign import ccall "expint.h gsl_sf_expint_E2_e" gsl_sf_expint_E2_e :: Double -> Ptr Double -> IO(Int) | ||
67 | |||
68 | -- | wrapper for double gsl_sf_expint_E2(double x); | ||
69 | -- | ||
70 | -- <http://www.google.com/search?q=gsl_sf_expint_E2&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
71 | expint_E2 :: Double -> Double | ||
72 | expint_E2 = gsl_sf_expint_E2 | ||
73 | foreign import ccall "expint.h gsl_sf_expint_E2" gsl_sf_expint_E2 :: Double -> Double | ||
74 | |||
75 | -- | wrapper for int gsl_sf_expint_E1_scaled_e(double x,gsl_sf_result* result); | ||
76 | -- | ||
77 | -- <http://www.google.com/search?q=gsl_sf_expint_E1_scaled_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
78 | expint_E1_scaled_e :: Double -> (Double,Double) | ||
79 | expint_E1_scaled_e x = createSFR "expint_E1_scaled_e" $ gsl_sf_expint_E1_scaled_e x | ||
80 | foreign import ccall "expint.h gsl_sf_expint_E1_scaled_e" gsl_sf_expint_E1_scaled_e :: Double -> Ptr Double -> IO(Int) | ||
81 | |||
82 | -- | wrapper for double gsl_sf_expint_E1_scaled(double x); | ||
83 | -- | ||
84 | -- <http://www.google.com/search?q=gsl_sf_expint_E1_scaled&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
85 | expint_E1_scaled :: Double -> Double | ||
86 | expint_E1_scaled = gsl_sf_expint_E1_scaled | ||
87 | foreign import ccall "expint.h gsl_sf_expint_E1_scaled" gsl_sf_expint_E1_scaled :: Double -> Double | ||
88 | |||
89 | -- | wrapper for int gsl_sf_expint_E2_scaled_e(double x,gsl_sf_result* result); | ||
90 | -- | ||
91 | -- <http://www.google.com/search?q=gsl_sf_expint_E2_scaled_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
92 | expint_E2_scaled_e :: Double -> (Double,Double) | ||
93 | expint_E2_scaled_e x = createSFR "expint_E2_scaled_e" $ gsl_sf_expint_E2_scaled_e x | ||
94 | foreign import ccall "expint.h gsl_sf_expint_E2_scaled_e" gsl_sf_expint_E2_scaled_e :: Double -> Ptr Double -> IO(Int) | ||
95 | |||
96 | -- | wrapper for double gsl_sf_expint_E2_scaled(double x); | ||
97 | -- | ||
98 | -- <http://www.google.com/search?q=gsl_sf_expint_E2_scaled&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
99 | expint_E2_scaled :: Double -> Double | ||
100 | expint_E2_scaled = gsl_sf_expint_E2_scaled | ||
101 | foreign import ccall "expint.h gsl_sf_expint_E2_scaled" gsl_sf_expint_E2_scaled :: Double -> Double | ||
102 | |||
103 | -- | wrapper for int gsl_sf_expint_Ei_e(double x,gsl_sf_result* result); | ||
104 | -- | ||
105 | -- <http://www.google.com/search?q=gsl_sf_expint_Ei_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
106 | expint_Ei_e :: Double -> (Double,Double) | ||
107 | expint_Ei_e x = createSFR "expint_Ei_e" $ gsl_sf_expint_Ei_e x | ||
108 | foreign import ccall "expint.h gsl_sf_expint_Ei_e" gsl_sf_expint_Ei_e :: Double -> Ptr Double -> IO(Int) | ||
109 | |||
110 | -- | wrapper for double gsl_sf_expint_Ei(double x); | ||
111 | -- | ||
112 | -- <http://www.google.com/search?q=gsl_sf_expint_Ei&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
113 | expint_Ei :: Double -> Double | ||
114 | expint_Ei = gsl_sf_expint_Ei | ||
115 | foreign import ccall "expint.h gsl_sf_expint_Ei" gsl_sf_expint_Ei :: Double -> Double | ||
116 | |||
117 | -- | wrapper for int gsl_sf_expint_Ei_scaled_e(double x,gsl_sf_result* result); | ||
118 | -- | ||
119 | -- <http://www.google.com/search?q=gsl_sf_expint_Ei_scaled_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
120 | expint_Ei_scaled_e :: Double -> (Double,Double) | ||
121 | expint_Ei_scaled_e x = createSFR "expint_Ei_scaled_e" $ gsl_sf_expint_Ei_scaled_e x | ||
122 | foreign import ccall "expint.h gsl_sf_expint_Ei_scaled_e" gsl_sf_expint_Ei_scaled_e :: Double -> Ptr Double -> IO(Int) | ||
123 | |||
124 | -- | wrapper for double gsl_sf_expint_Ei_scaled(double x); | ||
125 | -- | ||
126 | -- <http://www.google.com/search?q=gsl_sf_expint_Ei_scaled&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
127 | expint_Ei_scaled :: Double -> Double | ||
128 | expint_Ei_scaled = gsl_sf_expint_Ei_scaled | ||
129 | foreign import ccall "expint.h gsl_sf_expint_Ei_scaled" gsl_sf_expint_Ei_scaled :: Double -> Double | ||
130 | |||
131 | -- | wrapper for int gsl_sf_Shi_e(double x,gsl_sf_result* result); | ||
132 | -- | ||
133 | -- <http://www.google.com/search?q=gsl_sf_Shi_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
134 | shi_e :: Double -> (Double,Double) | ||
135 | shi_e x = createSFR "shi_e" $ gsl_sf_Shi_e x | ||
136 | foreign import ccall "expint.h gsl_sf_Shi_e" gsl_sf_Shi_e :: Double -> Ptr Double -> IO(Int) | ||
137 | |||
138 | -- | wrapper for double gsl_sf_Shi(double x); | ||
139 | -- | ||
140 | -- <http://www.google.com/search?q=gsl_sf_Shi&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
141 | shi :: Double -> Double | ||
142 | shi = gsl_sf_Shi | ||
143 | foreign import ccall "expint.h gsl_sf_Shi" gsl_sf_Shi :: Double -> Double | ||
144 | |||
145 | -- | wrapper for int gsl_sf_Chi_e(double x,gsl_sf_result* result); | ||
146 | -- | ||
147 | -- <http://www.google.com/search?q=gsl_sf_Chi_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
148 | chi_e :: Double -> (Double,Double) | ||
149 | chi_e x = createSFR "chi_e" $ gsl_sf_Chi_e x | ||
150 | foreign import ccall "expint.h gsl_sf_Chi_e" gsl_sf_Chi_e :: Double -> Ptr Double -> IO(Int) | ||
151 | |||
152 | -- | wrapper for double gsl_sf_Chi(double x); | ||
153 | -- | ||
154 | -- <http://www.google.com/search?q=gsl_sf_Chi&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
155 | chi :: Double -> Double | ||
156 | chi = gsl_sf_Chi | ||
157 | foreign import ccall "expint.h gsl_sf_Chi" gsl_sf_Chi :: Double -> Double | ||
158 | |||
159 | -- | wrapper for int gsl_sf_expint_3_e(double x,gsl_sf_result* result); | ||
160 | -- | ||
161 | -- <http://www.google.com/search?q=gsl_sf_expint_3_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
162 | expint_3_e :: Double -> (Double,Double) | ||
163 | expint_3_e x = createSFR "expint_3_e" $ gsl_sf_expint_3_e x | ||
164 | foreign import ccall "expint.h gsl_sf_expint_3_e" gsl_sf_expint_3_e :: Double -> Ptr Double -> IO(Int) | ||
165 | |||
166 | -- | wrapper for double gsl_sf_expint_3(double x); | ||
167 | -- | ||
168 | -- <http://www.google.com/search?q=gsl_sf_expint_3&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
169 | expint_3 :: Double -> Double | ||
170 | expint_3 = gsl_sf_expint_3 | ||
171 | foreign import ccall "expint.h gsl_sf_expint_3" gsl_sf_expint_3 :: Double -> Double | ||
172 | |||
173 | -- | wrapper for int gsl_sf_Si_e(double x,gsl_sf_result* result); | ||
174 | -- | ||
175 | -- <http://www.google.com/search?q=gsl_sf_Si_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
176 | si_e :: Double -> (Double,Double) | ||
177 | si_e x = createSFR "si_e" $ gsl_sf_Si_e x | ||
178 | foreign import ccall "expint.h gsl_sf_Si_e" gsl_sf_Si_e :: Double -> Ptr Double -> IO(Int) | ||
179 | |||
180 | -- | wrapper for double gsl_sf_Si(double x); | ||
181 | -- | ||
182 | -- <http://www.google.com/search?q=gsl_sf_Si&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
183 | si :: Double -> Double | ||
184 | si = gsl_sf_Si | ||
185 | foreign import ccall "expint.h gsl_sf_Si" gsl_sf_Si :: Double -> Double | ||
186 | |||
187 | -- | wrapper for int gsl_sf_Ci_e(double x,gsl_sf_result* result); | ||
188 | -- | ||
189 | -- <http://www.google.com/search?q=gsl_sf_Ci_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
190 | ci_e :: Double -> (Double,Double) | ||
191 | ci_e x = createSFR "ci_e" $ gsl_sf_Ci_e x | ||
192 | foreign import ccall "expint.h gsl_sf_Ci_e" gsl_sf_Ci_e :: Double -> Ptr Double -> IO(Int) | ||
193 | |||
194 | -- | wrapper for double gsl_sf_Ci(double x); | ||
195 | -- | ||
196 | -- <http://www.google.com/search?q=gsl_sf_Ci&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
197 | ci :: Double -> Double | ||
198 | ci = gsl_sf_Ci | ||
199 | foreign import ccall "expint.h gsl_sf_Ci" gsl_sf_Ci :: Double -> Double | ||
200 | |||
201 | -- | wrapper for int gsl_sf_atanint_e(double x,gsl_sf_result* result); | ||
202 | -- | ||
203 | -- <http://www.google.com/search?q=gsl_sf_atanint_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
204 | atanint_e :: Double -> (Double,Double) | ||
205 | atanint_e x = createSFR "atanint_e" $ gsl_sf_atanint_e x | ||
206 | foreign import ccall "expint.h gsl_sf_atanint_e" gsl_sf_atanint_e :: Double -> Ptr Double -> IO(Int) | ||
207 | |||
208 | -- | wrapper for double gsl_sf_atanint(double x); | ||
209 | -- | ||
210 | -- <http://www.google.com/search?q=gsl_sf_atanint&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
211 | atanint :: Double -> Double | ||
212 | atanint = gsl_sf_atanint | ||
213 | foreign import ccall "expint.h gsl_sf_atanint" gsl_sf_atanint :: Double -> Double | ||