diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Fermi_dirac.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Fermi_dirac.hs | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Fermi_dirac.hs b/lib/Numeric/GSL/Special/Fermi_dirac.hs new file mode 100644 index 0000000..a189dd4 --- /dev/null +++ b/lib/Numeric/GSL/Special/Fermi_dirac.hs | |||
@@ -0,0 +1,165 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : Numeric.GSL.Special.Fermi_dirac | ||
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_fermi_dirac.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | ||
16 | |||
17 | module Numeric.GSL.Special.Fermi_dirac( | ||
18 | fermi_dirac_m1_e | ||
19 | , fermi_dirac_m1 | ||
20 | , fermi_dirac_0_e | ||
21 | , fermi_dirac_0 | ||
22 | , fermi_dirac_1_e | ||
23 | , fermi_dirac_1 | ||
24 | , fermi_dirac_2_e | ||
25 | , fermi_dirac_2 | ||
26 | , fermi_dirac_int_e | ||
27 | , fermi_dirac_int | ||
28 | , fermi_dirac_mhalf_e | ||
29 | , fermi_dirac_mhalf | ||
30 | , fermi_dirac_half_e | ||
31 | , fermi_dirac_half | ||
32 | , fermi_dirac_3half_e | ||
33 | , fermi_dirac_3half | ||
34 | , fermi_dirac_inc_0_e | ||
35 | , fermi_dirac_inc_0 | ||
36 | ) where | ||
37 | |||
38 | import Foreign(Ptr) | ||
39 | import Numeric.GSL.Special.Internal | ||
40 | |||
41 | -- | wrapper for int gsl_sf_fermi_dirac_m1_e(double x,gsl_sf_result* result); | ||
42 | -- | ||
43 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_m1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
44 | fermi_dirac_m1_e :: Double -> (Double,Double) | ||
45 | fermi_dirac_m1_e x = createSFR "fermi_dirac_m1_e" $ gsl_sf_fermi_dirac_m1_e x | ||
46 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_m1_e" gsl_sf_fermi_dirac_m1_e :: Double -> Ptr Double -> IO(Int) | ||
47 | |||
48 | -- | wrapper for double gsl_sf_fermi_dirac_m1(double x); | ||
49 | -- | ||
50 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_m1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
51 | fermi_dirac_m1 :: Double -> Double | ||
52 | fermi_dirac_m1 = gsl_sf_fermi_dirac_m1 | ||
53 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_m1" gsl_sf_fermi_dirac_m1 :: Double -> Double | ||
54 | |||
55 | -- | wrapper for int gsl_sf_fermi_dirac_0_e(double x,gsl_sf_result* result); | ||
56 | -- | ||
57 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
58 | fermi_dirac_0_e :: Double -> (Double,Double) | ||
59 | fermi_dirac_0_e x = createSFR "fermi_dirac_0_e" $ gsl_sf_fermi_dirac_0_e x | ||
60 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_0_e" gsl_sf_fermi_dirac_0_e :: Double -> Ptr Double -> IO(Int) | ||
61 | |||
62 | -- | wrapper for double gsl_sf_fermi_dirac_0(double x); | ||
63 | -- | ||
64 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
65 | fermi_dirac_0 :: Double -> Double | ||
66 | fermi_dirac_0 = gsl_sf_fermi_dirac_0 | ||
67 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_0" gsl_sf_fermi_dirac_0 :: Double -> Double | ||
68 | |||
69 | -- | wrapper for int gsl_sf_fermi_dirac_1_e(double x,gsl_sf_result* result); | ||
70 | -- | ||
71 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
72 | fermi_dirac_1_e :: Double -> (Double,Double) | ||
73 | fermi_dirac_1_e x = createSFR "fermi_dirac_1_e" $ gsl_sf_fermi_dirac_1_e x | ||
74 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_1_e" gsl_sf_fermi_dirac_1_e :: Double -> Ptr Double -> IO(Int) | ||
75 | |||
76 | -- | wrapper for double gsl_sf_fermi_dirac_1(double x); | ||
77 | -- | ||
78 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
79 | fermi_dirac_1 :: Double -> Double | ||
80 | fermi_dirac_1 = gsl_sf_fermi_dirac_1 | ||
81 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_1" gsl_sf_fermi_dirac_1 :: Double -> Double | ||
82 | |||
83 | -- | wrapper for int gsl_sf_fermi_dirac_2_e(double x,gsl_sf_result* result); | ||
84 | -- | ||
85 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
86 | fermi_dirac_2_e :: Double -> (Double,Double) | ||
87 | fermi_dirac_2_e x = createSFR "fermi_dirac_2_e" $ gsl_sf_fermi_dirac_2_e x | ||
88 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_2_e" gsl_sf_fermi_dirac_2_e :: Double -> Ptr Double -> IO(Int) | ||
89 | |||
90 | -- | wrapper for double gsl_sf_fermi_dirac_2(double x); | ||
91 | -- | ||
92 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_2&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
93 | fermi_dirac_2 :: Double -> Double | ||
94 | fermi_dirac_2 = gsl_sf_fermi_dirac_2 | ||
95 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_2" gsl_sf_fermi_dirac_2 :: Double -> Double | ||
96 | |||
97 | -- | wrapper for int gsl_sf_fermi_dirac_int_e(int j,double x,gsl_sf_result* result); | ||
98 | -- | ||
99 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
100 | fermi_dirac_int_e :: Int -> Double -> (Double,Double) | ||
101 | fermi_dirac_int_e j x = createSFR "fermi_dirac_int_e" $ gsl_sf_fermi_dirac_int_e j x | ||
102 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_int_e" gsl_sf_fermi_dirac_int_e :: Int -> Double -> Ptr Double -> IO(Int) | ||
103 | |||
104 | -- | wrapper for double gsl_sf_fermi_dirac_int(int j,double x); | ||
105 | -- | ||
106 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
107 | fermi_dirac_int :: Int -> Double -> Double | ||
108 | fermi_dirac_int = gsl_sf_fermi_dirac_int | ||
109 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_int" gsl_sf_fermi_dirac_int :: Int -> Double -> Double | ||
110 | |||
111 | -- | wrapper for int gsl_sf_fermi_dirac_mhalf_e(double x,gsl_sf_result* result); | ||
112 | -- | ||
113 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_mhalf_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
114 | fermi_dirac_mhalf_e :: Double -> (Double,Double) | ||
115 | fermi_dirac_mhalf_e x = createSFR "fermi_dirac_mhalf_e" $ gsl_sf_fermi_dirac_mhalf_e x | ||
116 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_mhalf_e" gsl_sf_fermi_dirac_mhalf_e :: Double -> Ptr Double -> IO(Int) | ||
117 | |||
118 | -- | wrapper for double gsl_sf_fermi_dirac_mhalf(double x); | ||
119 | -- | ||
120 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_mhalf&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
121 | fermi_dirac_mhalf :: Double -> Double | ||
122 | fermi_dirac_mhalf = gsl_sf_fermi_dirac_mhalf | ||
123 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_mhalf" gsl_sf_fermi_dirac_mhalf :: Double -> Double | ||
124 | |||
125 | -- | wrapper for int gsl_sf_fermi_dirac_half_e(double x,gsl_sf_result* result); | ||
126 | -- | ||
127 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_half_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
128 | fermi_dirac_half_e :: Double -> (Double,Double) | ||
129 | fermi_dirac_half_e x = createSFR "fermi_dirac_half_e" $ gsl_sf_fermi_dirac_half_e x | ||
130 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_half_e" gsl_sf_fermi_dirac_half_e :: Double -> Ptr Double -> IO(Int) | ||
131 | |||
132 | -- | wrapper for double gsl_sf_fermi_dirac_half(double x); | ||
133 | -- | ||
134 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_half&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
135 | fermi_dirac_half :: Double -> Double | ||
136 | fermi_dirac_half = gsl_sf_fermi_dirac_half | ||
137 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_half" gsl_sf_fermi_dirac_half :: Double -> Double | ||
138 | |||
139 | -- | wrapper for int gsl_sf_fermi_dirac_3half_e(double x,gsl_sf_result* result); | ||
140 | -- | ||
141 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_3half_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
142 | fermi_dirac_3half_e :: Double -> (Double,Double) | ||
143 | fermi_dirac_3half_e x = createSFR "fermi_dirac_3half_e" $ gsl_sf_fermi_dirac_3half_e x | ||
144 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_3half_e" gsl_sf_fermi_dirac_3half_e :: Double -> Ptr Double -> IO(Int) | ||
145 | |||
146 | -- | wrapper for double gsl_sf_fermi_dirac_3half(double x); | ||
147 | -- | ||
148 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_3half&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
149 | fermi_dirac_3half :: Double -> Double | ||
150 | fermi_dirac_3half = gsl_sf_fermi_dirac_3half | ||
151 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_3half" gsl_sf_fermi_dirac_3half :: Double -> Double | ||
152 | |||
153 | -- | wrapper for int gsl_sf_fermi_dirac_inc_0_e(double x,double b,gsl_sf_result* result); | ||
154 | -- | ||
155 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_inc_0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
156 | fermi_dirac_inc_0_e :: Double -> Double -> (Double,Double) | ||
157 | fermi_dirac_inc_0_e x b = createSFR "fermi_dirac_inc_0_e" $ gsl_sf_fermi_dirac_inc_0_e x b | ||
158 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_inc_0_e" gsl_sf_fermi_dirac_inc_0_e :: Double -> Double -> Ptr Double -> IO(Int) | ||
159 | |||
160 | -- | wrapper for double gsl_sf_fermi_dirac_inc_0(double x,double b); | ||
161 | -- | ||
162 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_inc_0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
163 | fermi_dirac_inc_0 :: Double -> Double -> Double | ||
164 | fermi_dirac_inc_0 = gsl_sf_fermi_dirac_inc_0 | ||
165 | foreign import ccall "fermi_dirac.h gsl_sf_fermi_dirac_inc_0" gsl_sf_fermi_dirac_inc_0 :: Double -> Double -> Double | ||