summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Expint.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
committerAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
commitb9db4d25d87cd4ab0f493413db92fb41b7eacda9 (patch)
treea447fe6f7e16b3768e912064a033ce257040720e /lib/GSL/Special/Expint.hs
parentb1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff)
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Expint.hs')
-rw-r--r--lib/GSL/Special/Expint.hs163
1 files changed, 163 insertions, 0 deletions
diff --git a/lib/GSL/Special/Expint.hs b/lib/GSL/Special/Expint.hs
new file mode 100644
index 0000000..f761966
--- /dev/null
+++ b/lib/GSL/Special/Expint.hs
@@ -0,0 +1,163 @@
1------------------------------------------------------------
2{- |
3Module : 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
10
11
12-}
13------------------------------------------------------------
14
15module GSL.Special.Expint(
16 expint_E1_e
17, expint_E1
18, expint_E2_e
19, expint_E2
20, expint_E1_scaled_e
21, expint_E1_scaled
22, expint_E2_scaled_e
23, expint_E2_scaled
24, expint_Ei_e
25, expint_Ei
26, expint_Ei_scaled_e
27, expint_Ei_scaled
28, shi_e
29, shi
30, chi_e
31, chi
32, expint_3_e
33, expint_3
34, si_e
35, si
36, ci_e
37, ci
38, atanint_e
39, atanint
40) where
41
42import Foreign(Ptr)
43import GSL.Special.Internal
44
45-- | wrapper for int gsl_sf_expint_E1_e(double x,gsl_sf_result* result);
46expint_E1_e :: Double -> (Double,Double)
47expint_E1_e x = createSFR "expint_E1_e" $ gsl_sf_expint_E1_e x
48foreign import ccall "expint.h gsl_sf_expint_E1_e" gsl_sf_expint_E1_e :: Double -> Ptr Double -> IO(Int)
49
50-- | wrapper for double gsl_sf_expint_E1(double x);
51expint_E1 :: Double -> Double
52expint_E1 = gsl_sf_expint_E1
53foreign import ccall "expint.h gsl_sf_expint_E1" gsl_sf_expint_E1 :: Double -> Double
54
55-- | wrapper for int gsl_sf_expint_E2_e(double x,gsl_sf_result* result);
56expint_E2_e :: Double -> (Double,Double)
57expint_E2_e x = createSFR "expint_E2_e" $ gsl_sf_expint_E2_e x
58foreign import ccall "expint.h gsl_sf_expint_E2_e" gsl_sf_expint_E2_e :: Double -> Ptr Double -> IO(Int)
59
60-- | wrapper for double gsl_sf_expint_E2(double x);
61expint_E2 :: Double -> Double
62expint_E2 = gsl_sf_expint_E2
63foreign import ccall "expint.h gsl_sf_expint_E2" gsl_sf_expint_E2 :: Double -> Double
64
65-- | wrapper for int gsl_sf_expint_E1_scaled_e(double x,gsl_sf_result* result);
66expint_E1_scaled_e :: Double -> (Double,Double)
67expint_E1_scaled_e x = createSFR "expint_E1_scaled_e" $ gsl_sf_expint_E1_scaled_e x
68foreign import ccall "expint.h gsl_sf_expint_E1_scaled_e" gsl_sf_expint_E1_scaled_e :: Double -> Ptr Double -> IO(Int)
69
70-- | wrapper for double gsl_sf_expint_E1_scaled(double x);
71expint_E1_scaled :: Double -> Double
72expint_E1_scaled = gsl_sf_expint_E1_scaled
73foreign import ccall "expint.h gsl_sf_expint_E1_scaled" gsl_sf_expint_E1_scaled :: Double -> Double
74
75-- | wrapper for int gsl_sf_expint_E2_scaled_e(double x,gsl_sf_result* result);
76expint_E2_scaled_e :: Double -> (Double,Double)
77expint_E2_scaled_e x = createSFR "expint_E2_scaled_e" $ gsl_sf_expint_E2_scaled_e x
78foreign import ccall "expint.h gsl_sf_expint_E2_scaled_e" gsl_sf_expint_E2_scaled_e :: Double -> Ptr Double -> IO(Int)
79
80-- | wrapper for double gsl_sf_expint_E2_scaled(double x);
81expint_E2_scaled :: Double -> Double
82expint_E2_scaled = gsl_sf_expint_E2_scaled
83foreign import ccall "expint.h gsl_sf_expint_E2_scaled" gsl_sf_expint_E2_scaled :: Double -> Double
84
85-- | wrapper for int gsl_sf_expint_Ei_e(double x,gsl_sf_result* result);
86expint_Ei_e :: Double -> (Double,Double)
87expint_Ei_e x = createSFR "expint_Ei_e" $ gsl_sf_expint_Ei_e x
88foreign import ccall "expint.h gsl_sf_expint_Ei_e" gsl_sf_expint_Ei_e :: Double -> Ptr Double -> IO(Int)
89
90-- | wrapper for double gsl_sf_expint_Ei(double x);
91expint_Ei :: Double -> Double
92expint_Ei = gsl_sf_expint_Ei
93foreign import ccall "expint.h gsl_sf_expint_Ei" gsl_sf_expint_Ei :: Double -> Double
94
95-- | wrapper for int gsl_sf_expint_Ei_scaled_e(double x,gsl_sf_result* result);
96expint_Ei_scaled_e :: Double -> (Double,Double)
97expint_Ei_scaled_e x = createSFR "expint_Ei_scaled_e" $ gsl_sf_expint_Ei_scaled_e x
98foreign import ccall "expint.h gsl_sf_expint_Ei_scaled_e" gsl_sf_expint_Ei_scaled_e :: Double -> Ptr Double -> IO(Int)
99
100-- | wrapper for double gsl_sf_expint_Ei_scaled(double x);
101expint_Ei_scaled :: Double -> Double
102expint_Ei_scaled = gsl_sf_expint_Ei_scaled
103foreign import ccall "expint.h gsl_sf_expint_Ei_scaled" gsl_sf_expint_Ei_scaled :: Double -> Double
104
105-- | wrapper for int gsl_sf_Shi_e(double x,gsl_sf_result* result);
106shi_e :: Double -> (Double,Double)
107shi_e x = createSFR "shi_e" $ gsl_sf_Shi_e x
108foreign import ccall "expint.h gsl_sf_Shi_e" gsl_sf_Shi_e :: Double -> Ptr Double -> IO(Int)
109
110-- | wrapper for double gsl_sf_Shi(double x);
111shi :: Double -> Double
112shi = gsl_sf_Shi
113foreign import ccall "expint.h gsl_sf_Shi" gsl_sf_Shi :: Double -> Double
114
115-- | wrapper for int gsl_sf_Chi_e(double x,gsl_sf_result* result);
116chi_e :: Double -> (Double,Double)
117chi_e x = createSFR "chi_e" $ gsl_sf_Chi_e x
118foreign import ccall "expint.h gsl_sf_Chi_e" gsl_sf_Chi_e :: Double -> Ptr Double -> IO(Int)
119
120-- | wrapper for double gsl_sf_Chi(double x);
121chi :: Double -> Double
122chi = gsl_sf_Chi
123foreign import ccall "expint.h gsl_sf_Chi" gsl_sf_Chi :: Double -> Double
124
125-- | wrapper for int gsl_sf_expint_3_e(double x,gsl_sf_result* result);
126expint_3_e :: Double -> (Double,Double)
127expint_3_e x = createSFR "expint_3_e" $ gsl_sf_expint_3_e x
128foreign import ccall "expint.h gsl_sf_expint_3_e" gsl_sf_expint_3_e :: Double -> Ptr Double -> IO(Int)
129
130-- | wrapper for double gsl_sf_expint_3(double x);
131expint_3 :: Double -> Double
132expint_3 = gsl_sf_expint_3
133foreign import ccall "expint.h gsl_sf_expint_3" gsl_sf_expint_3 :: Double -> Double
134
135-- | wrapper for int gsl_sf_Si_e(double x,gsl_sf_result* result);
136si_e :: Double -> (Double,Double)
137si_e x = createSFR "si_e" $ gsl_sf_Si_e x
138foreign import ccall "expint.h gsl_sf_Si_e" gsl_sf_Si_e :: Double -> Ptr Double -> IO(Int)
139
140-- | wrapper for double gsl_sf_Si(double x);
141si :: Double -> Double
142si = gsl_sf_Si
143foreign import ccall "expint.h gsl_sf_Si" gsl_sf_Si :: Double -> Double
144
145-- | wrapper for int gsl_sf_Ci_e(double x,gsl_sf_result* result);
146ci_e :: Double -> (Double,Double)
147ci_e x = createSFR "ci_e" $ gsl_sf_Ci_e x
148foreign import ccall "expint.h gsl_sf_Ci_e" gsl_sf_Ci_e :: Double -> Ptr Double -> IO(Int)
149
150-- | wrapper for double gsl_sf_Ci(double x);
151ci :: Double -> Double
152ci = gsl_sf_Ci
153foreign import ccall "expint.h gsl_sf_Ci" gsl_sf_Ci :: Double -> Double
154
155-- | wrapper for int gsl_sf_atanint_e(double x,gsl_sf_result* result);
156atanint_e :: Double -> (Double,Double)
157atanint_e x = createSFR "atanint_e" $ gsl_sf_atanint_e x
158foreign import ccall "expint.h gsl_sf_atanint_e" gsl_sf_atanint_e :: Double -> Ptr Double -> IO(Int)
159
160-- | wrapper for double gsl_sf_atanint(double x);
161atanint :: Double -> Double
162atanint = gsl_sf_atanint
163foreign import ccall "expint.h gsl_sf_atanint" gsl_sf_atanint :: Double -> Double