summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Expint.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Special/Expint.hs')
-rw-r--r--lib/Numeric/GSL/Special/Expint.hs213
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{- |
3Module : Numeric.GSL.Special.Expint
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_expint.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
13
14-}
15------------------------------------------------------------
16
17module 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
44import Foreign(Ptr)
45import 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>
50expint_E1_e :: Double -> (Double,Double)
51expint_E1_e x = createSFR "expint_E1_e" $ gsl_sf_expint_E1_e x
52foreign 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>
57expint_E1 :: Double -> Double
58expint_E1 = gsl_sf_expint_E1
59foreign 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>
64expint_E2_e :: Double -> (Double,Double)
65expint_E2_e x = createSFR "expint_E2_e" $ gsl_sf_expint_E2_e x
66foreign 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>
71expint_E2 :: Double -> Double
72expint_E2 = gsl_sf_expint_E2
73foreign 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>
78expint_E1_scaled_e :: Double -> (Double,Double)
79expint_E1_scaled_e x = createSFR "expint_E1_scaled_e" $ gsl_sf_expint_E1_scaled_e x
80foreign 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>
85expint_E1_scaled :: Double -> Double
86expint_E1_scaled = gsl_sf_expint_E1_scaled
87foreign 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>
92expint_E2_scaled_e :: Double -> (Double,Double)
93expint_E2_scaled_e x = createSFR "expint_E2_scaled_e" $ gsl_sf_expint_E2_scaled_e x
94foreign 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>
99expint_E2_scaled :: Double -> Double
100expint_E2_scaled = gsl_sf_expint_E2_scaled
101foreign 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>
106expint_Ei_e :: Double -> (Double,Double)
107expint_Ei_e x = createSFR "expint_Ei_e" $ gsl_sf_expint_Ei_e x
108foreign 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>
113expint_Ei :: Double -> Double
114expint_Ei = gsl_sf_expint_Ei
115foreign 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>
120expint_Ei_scaled_e :: Double -> (Double,Double)
121expint_Ei_scaled_e x = createSFR "expint_Ei_scaled_e" $ gsl_sf_expint_Ei_scaled_e x
122foreign 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>
127expint_Ei_scaled :: Double -> Double
128expint_Ei_scaled = gsl_sf_expint_Ei_scaled
129foreign 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>
134shi_e :: Double -> (Double,Double)
135shi_e x = createSFR "shi_e" $ gsl_sf_Shi_e x
136foreign 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>
141shi :: Double -> Double
142shi = gsl_sf_Shi
143foreign 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>
148chi_e :: Double -> (Double,Double)
149chi_e x = createSFR "chi_e" $ gsl_sf_Chi_e x
150foreign 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>
155chi :: Double -> Double
156chi = gsl_sf_Chi
157foreign 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>
162expint_3_e :: Double -> (Double,Double)
163expint_3_e x = createSFR "expint_3_e" $ gsl_sf_expint_3_e x
164foreign 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>
169expint_3 :: Double -> Double
170expint_3 = gsl_sf_expint_3
171foreign 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>
176si_e :: Double -> (Double,Double)
177si_e x = createSFR "si_e" $ gsl_sf_Si_e x
178foreign 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>
183si :: Double -> Double
184si = gsl_sf_Si
185foreign 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>
190ci_e :: Double -> (Double,Double)
191ci_e x = createSFR "ci_e" $ gsl_sf_Ci_e x
192foreign 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>
197ci :: Double -> Double
198ci = gsl_sf_Ci
199foreign 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>
204atanint_e :: Double -> (Double,Double)
205atanint_e x = createSFR "atanint_e" $ gsl_sf_atanint_e x
206foreign 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>
211atanint :: Double -> Double
212atanint = gsl_sf_atanint
213foreign import ccall "expint.h gsl_sf_atanint" gsl_sf_atanint :: Double -> Double