diff options
author | Alberto Ruiz <aruiz@um.es> | 2009-06-17 12:27:17 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2009-06-17 12:27:17 +0000 |
commit | e58f1e0e94407983fa18cd535cf76427019f1519 (patch) | |
tree | 4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/Fermi_dirac.hs | |
parent | 45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff) |
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Fermi_dirac.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Fermi_dirac.hs | 96 |
1 files changed, 11 insertions, 85 deletions
diff --git a/lib/Numeric/GSL/Special/Fermi_dirac.hs b/lib/Numeric/GSL/Special/Fermi_dirac.hs index d59fce1..3547e52 100644 --- a/lib/Numeric/GSL/Special/Fermi_dirac.hs +++ b/lib/Numeric/GSL/Special/Fermi_dirac.hs | |||
@@ -1,17 +1,15 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | {- | | 2 | -- | |
3 | Module : Numeric.GSL.Special.Fermi_dirac | 3 | -- Module : Numeric.GSL.Special.Fermi_dirac |
4 | Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006 |
5 | License : GPL-style | 5 | -- License : GPL |
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | Stability : provisional | 7 | -- Stability : provisional |
8 | Portability : uses ffi | 8 | -- Portability : uses ffi |
9 | 9 | -- | |
10 | Wrappers for selected functions described at: | 10 | -- Wrappers for selected functions described at: |
11 | 11 | -- | |
12 | <http://www.google.com/search?q=gsl_sf_fermi_dirac.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 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 | ------------------------------------------------------------ | 13 | ------------------------------------------------------------ |
16 | 14 | ||
17 | module Numeric.GSL.Special.Fermi_dirac( | 15 | module Numeric.GSL.Special.Fermi_dirac( |
@@ -38,129 +36,57 @@ module Numeric.GSL.Special.Fermi_dirac( | |||
38 | import Foreign(Ptr) | 36 | import Foreign(Ptr) |
39 | import Foreign.C.Types(CInt) | 37 | import Foreign.C.Types(CInt) |
40 | import Numeric.GSL.Special.Internal | 38 | import Numeric.GSL.Special.Internal |
41 | |||
42 | -- | wrapper for int gsl_sf_fermi_dirac_m1_e(double x,gsl_sf_result* result); | ||
43 | -- | ||
44 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_m1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
45 | fermi_dirac_m1_e :: Double -> (Double,Double) | 39 | fermi_dirac_m1_e :: Double -> (Double,Double) |
46 | fermi_dirac_m1_e x = createSFR "fermi_dirac_m1_e" $ gsl_sf_fermi_dirac_m1_e x | 40 | fermi_dirac_m1_e x = createSFR "fermi_dirac_m1_e" $ gsl_sf_fermi_dirac_m1_e x |
47 | foreign import ccall "gsl_sf_fermi_dirac_m1_e" gsl_sf_fermi_dirac_m1_e :: Double -> Ptr () -> IO CInt | 41 | foreign import ccall "gsl_sf_fermi_dirac_m1_e" gsl_sf_fermi_dirac_m1_e :: Double -> Ptr () -> IO CInt |
48 | |||
49 | -- | wrapper for double gsl_sf_fermi_dirac_m1(double x); | ||
50 | -- | ||
51 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_m1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
52 | fermi_dirac_m1 :: Double -> Double | 42 | fermi_dirac_m1 :: Double -> Double |
53 | fermi_dirac_m1 = gsl_sf_fermi_dirac_m1 | 43 | fermi_dirac_m1 = gsl_sf_fermi_dirac_m1 |
54 | foreign import ccall "gsl_sf_fermi_dirac_m1" gsl_sf_fermi_dirac_m1 :: Double -> Double | 44 | foreign import ccall "gsl_sf_fermi_dirac_m1" gsl_sf_fermi_dirac_m1 :: Double -> Double |
55 | |||
56 | -- | wrapper for int gsl_sf_fermi_dirac_0_e(double x,gsl_sf_result* result); | ||
57 | -- | ||
58 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
59 | fermi_dirac_0_e :: Double -> (Double,Double) | 45 | fermi_dirac_0_e :: Double -> (Double,Double) |
60 | fermi_dirac_0_e x = createSFR "fermi_dirac_0_e" $ gsl_sf_fermi_dirac_0_e x | 46 | fermi_dirac_0_e x = createSFR "fermi_dirac_0_e" $ gsl_sf_fermi_dirac_0_e x |
61 | foreign import ccall "gsl_sf_fermi_dirac_0_e" gsl_sf_fermi_dirac_0_e :: Double -> Ptr () -> IO CInt | 47 | foreign import ccall "gsl_sf_fermi_dirac_0_e" gsl_sf_fermi_dirac_0_e :: Double -> Ptr () -> IO CInt |
62 | |||
63 | -- | wrapper for double gsl_sf_fermi_dirac_0(double x); | ||
64 | -- | ||
65 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
66 | fermi_dirac_0 :: Double -> Double | 48 | fermi_dirac_0 :: Double -> Double |
67 | fermi_dirac_0 = gsl_sf_fermi_dirac_0 | 49 | fermi_dirac_0 = gsl_sf_fermi_dirac_0 |
68 | foreign import ccall "gsl_sf_fermi_dirac_0" gsl_sf_fermi_dirac_0 :: Double -> Double | 50 | foreign import ccall "gsl_sf_fermi_dirac_0" gsl_sf_fermi_dirac_0 :: Double -> Double |
69 | |||
70 | -- | wrapper for int gsl_sf_fermi_dirac_1_e(double x,gsl_sf_result* result); | ||
71 | -- | ||
72 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
73 | fermi_dirac_1_e :: Double -> (Double,Double) | 51 | fermi_dirac_1_e :: Double -> (Double,Double) |
74 | fermi_dirac_1_e x = createSFR "fermi_dirac_1_e" $ gsl_sf_fermi_dirac_1_e x | 52 | fermi_dirac_1_e x = createSFR "fermi_dirac_1_e" $ gsl_sf_fermi_dirac_1_e x |
75 | foreign import ccall "gsl_sf_fermi_dirac_1_e" gsl_sf_fermi_dirac_1_e :: Double -> Ptr () -> IO CInt | 53 | foreign import ccall "gsl_sf_fermi_dirac_1_e" gsl_sf_fermi_dirac_1_e :: Double -> Ptr () -> IO CInt |
76 | |||
77 | -- | wrapper for double gsl_sf_fermi_dirac_1(double x); | ||
78 | -- | ||
79 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
80 | fermi_dirac_1 :: Double -> Double | 54 | fermi_dirac_1 :: Double -> Double |
81 | fermi_dirac_1 = gsl_sf_fermi_dirac_1 | 55 | fermi_dirac_1 = gsl_sf_fermi_dirac_1 |
82 | foreign import ccall "gsl_sf_fermi_dirac_1" gsl_sf_fermi_dirac_1 :: Double -> Double | 56 | foreign import ccall "gsl_sf_fermi_dirac_1" gsl_sf_fermi_dirac_1 :: Double -> Double |
83 | |||
84 | -- | wrapper for int gsl_sf_fermi_dirac_2_e(double x,gsl_sf_result* result); | ||
85 | -- | ||
86 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
87 | fermi_dirac_2_e :: Double -> (Double,Double) | 57 | fermi_dirac_2_e :: Double -> (Double,Double) |
88 | fermi_dirac_2_e x = createSFR "fermi_dirac_2_e" $ gsl_sf_fermi_dirac_2_e x | 58 | fermi_dirac_2_e x = createSFR "fermi_dirac_2_e" $ gsl_sf_fermi_dirac_2_e x |
89 | foreign import ccall "gsl_sf_fermi_dirac_2_e" gsl_sf_fermi_dirac_2_e :: Double -> Ptr () -> IO CInt | 59 | foreign import ccall "gsl_sf_fermi_dirac_2_e" gsl_sf_fermi_dirac_2_e :: Double -> Ptr () -> IO CInt |
90 | |||
91 | -- | wrapper for double gsl_sf_fermi_dirac_2(double x); | ||
92 | -- | ||
93 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_2&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
94 | fermi_dirac_2 :: Double -> Double | 60 | fermi_dirac_2 :: Double -> Double |
95 | fermi_dirac_2 = gsl_sf_fermi_dirac_2 | 61 | fermi_dirac_2 = gsl_sf_fermi_dirac_2 |
96 | foreign import ccall "gsl_sf_fermi_dirac_2" gsl_sf_fermi_dirac_2 :: Double -> Double | 62 | foreign import ccall "gsl_sf_fermi_dirac_2" gsl_sf_fermi_dirac_2 :: Double -> Double |
97 | |||
98 | -- | wrapper for int gsl_sf_fermi_dirac_int_e(int j,double x,gsl_sf_result* result); | ||
99 | -- | ||
100 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
101 | fermi_dirac_int_e :: CInt -> Double -> (Double,Double) | 63 | fermi_dirac_int_e :: CInt -> Double -> (Double,Double) |
102 | fermi_dirac_int_e j x = createSFR "fermi_dirac_int_e" $ gsl_sf_fermi_dirac_int_e j x | 64 | fermi_dirac_int_e j x = createSFR "fermi_dirac_int_e" $ gsl_sf_fermi_dirac_int_e j x |
103 | foreign import ccall "gsl_sf_fermi_dirac_int_e" gsl_sf_fermi_dirac_int_e :: CInt -> Double -> Ptr () -> IO CInt | 65 | foreign import ccall "gsl_sf_fermi_dirac_int_e" gsl_sf_fermi_dirac_int_e :: CInt -> Double -> Ptr () -> IO CInt |
104 | |||
105 | -- | wrapper for double gsl_sf_fermi_dirac_int(int j,double x); | ||
106 | -- | ||
107 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
108 | fermi_dirac_int :: CInt -> Double -> Double | 66 | fermi_dirac_int :: CInt -> Double -> Double |
109 | fermi_dirac_int = gsl_sf_fermi_dirac_int | 67 | fermi_dirac_int = gsl_sf_fermi_dirac_int |
110 | foreign import ccall "gsl_sf_fermi_dirac_int" gsl_sf_fermi_dirac_int :: CInt -> Double -> Double | 68 | foreign import ccall "gsl_sf_fermi_dirac_int" gsl_sf_fermi_dirac_int :: CInt -> Double -> Double |
111 | |||
112 | -- | wrapper for int gsl_sf_fermi_dirac_mhalf_e(double x,gsl_sf_result* result); | ||
113 | -- | ||
114 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_mhalf_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
115 | fermi_dirac_mhalf_e :: Double -> (Double,Double) | 69 | fermi_dirac_mhalf_e :: Double -> (Double,Double) |
116 | fermi_dirac_mhalf_e x = createSFR "fermi_dirac_mhalf_e" $ gsl_sf_fermi_dirac_mhalf_e x | 70 | fermi_dirac_mhalf_e x = createSFR "fermi_dirac_mhalf_e" $ gsl_sf_fermi_dirac_mhalf_e x |
117 | foreign import ccall "gsl_sf_fermi_dirac_mhalf_e" gsl_sf_fermi_dirac_mhalf_e :: Double -> Ptr () -> IO CInt | 71 | foreign import ccall "gsl_sf_fermi_dirac_mhalf_e" gsl_sf_fermi_dirac_mhalf_e :: Double -> Ptr () -> IO CInt |
118 | |||
119 | -- | wrapper for double gsl_sf_fermi_dirac_mhalf(double x); | ||
120 | -- | ||
121 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_mhalf&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
122 | fermi_dirac_mhalf :: Double -> Double | 72 | fermi_dirac_mhalf :: Double -> Double |
123 | fermi_dirac_mhalf = gsl_sf_fermi_dirac_mhalf | 73 | fermi_dirac_mhalf = gsl_sf_fermi_dirac_mhalf |
124 | foreign import ccall "gsl_sf_fermi_dirac_mhalf" gsl_sf_fermi_dirac_mhalf :: Double -> Double | 74 | foreign import ccall "gsl_sf_fermi_dirac_mhalf" gsl_sf_fermi_dirac_mhalf :: Double -> Double |
125 | |||
126 | -- | wrapper for int gsl_sf_fermi_dirac_half_e(double x,gsl_sf_result* result); | ||
127 | -- | ||
128 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_half_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
129 | fermi_dirac_half_e :: Double -> (Double,Double) | 75 | fermi_dirac_half_e :: Double -> (Double,Double) |
130 | fermi_dirac_half_e x = createSFR "fermi_dirac_half_e" $ gsl_sf_fermi_dirac_half_e x | 76 | fermi_dirac_half_e x = createSFR "fermi_dirac_half_e" $ gsl_sf_fermi_dirac_half_e x |
131 | foreign import ccall "gsl_sf_fermi_dirac_half_e" gsl_sf_fermi_dirac_half_e :: Double -> Ptr () -> IO CInt | 77 | foreign import ccall "gsl_sf_fermi_dirac_half_e" gsl_sf_fermi_dirac_half_e :: Double -> Ptr () -> IO CInt |
132 | |||
133 | -- | wrapper for double gsl_sf_fermi_dirac_half(double x); | ||
134 | -- | ||
135 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_half&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
136 | fermi_dirac_half :: Double -> Double | 78 | fermi_dirac_half :: Double -> Double |
137 | fermi_dirac_half = gsl_sf_fermi_dirac_half | 79 | fermi_dirac_half = gsl_sf_fermi_dirac_half |
138 | foreign import ccall "gsl_sf_fermi_dirac_half" gsl_sf_fermi_dirac_half :: Double -> Double | 80 | foreign import ccall "gsl_sf_fermi_dirac_half" gsl_sf_fermi_dirac_half :: Double -> Double |
139 | |||
140 | -- | wrapper for int gsl_sf_fermi_dirac_3half_e(double x,gsl_sf_result* result); | ||
141 | -- | ||
142 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_3half_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
143 | fermi_dirac_3half_e :: Double -> (Double,Double) | 81 | fermi_dirac_3half_e :: Double -> (Double,Double) |
144 | fermi_dirac_3half_e x = createSFR "fermi_dirac_3half_e" $ gsl_sf_fermi_dirac_3half_e x | 82 | fermi_dirac_3half_e x = createSFR "fermi_dirac_3half_e" $ gsl_sf_fermi_dirac_3half_e x |
145 | foreign import ccall "gsl_sf_fermi_dirac_3half_e" gsl_sf_fermi_dirac_3half_e :: Double -> Ptr () -> IO CInt | 83 | foreign import ccall "gsl_sf_fermi_dirac_3half_e" gsl_sf_fermi_dirac_3half_e :: Double -> Ptr () -> IO CInt |
146 | |||
147 | -- | wrapper for double gsl_sf_fermi_dirac_3half(double x); | ||
148 | -- | ||
149 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_3half&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
150 | fermi_dirac_3half :: Double -> Double | 84 | fermi_dirac_3half :: Double -> Double |
151 | fermi_dirac_3half = gsl_sf_fermi_dirac_3half | 85 | fermi_dirac_3half = gsl_sf_fermi_dirac_3half |
152 | foreign import ccall "gsl_sf_fermi_dirac_3half" gsl_sf_fermi_dirac_3half :: Double -> Double | 86 | foreign import ccall "gsl_sf_fermi_dirac_3half" gsl_sf_fermi_dirac_3half :: Double -> Double |
153 | |||
154 | -- | wrapper for int gsl_sf_fermi_dirac_inc_0_e(double x,double b,gsl_sf_result* result); | ||
155 | -- | ||
156 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_inc_0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
157 | fermi_dirac_inc_0_e :: Double -> Double -> (Double,Double) | 87 | fermi_dirac_inc_0_e :: Double -> Double -> (Double,Double) |
158 | fermi_dirac_inc_0_e x b = createSFR "fermi_dirac_inc_0_e" $ gsl_sf_fermi_dirac_inc_0_e x b | 88 | fermi_dirac_inc_0_e x b = createSFR "fermi_dirac_inc_0_e" $ gsl_sf_fermi_dirac_inc_0_e x b |
159 | foreign import ccall "gsl_sf_fermi_dirac_inc_0_e" gsl_sf_fermi_dirac_inc_0_e :: Double -> Double -> Ptr () -> IO CInt | 89 | foreign import ccall "gsl_sf_fermi_dirac_inc_0_e" gsl_sf_fermi_dirac_inc_0_e :: Double -> Double -> Ptr () -> IO CInt |
160 | |||
161 | -- | wrapper for double gsl_sf_fermi_dirac_inc_0(double x,double b); | ||
162 | -- | ||
163 | -- <http://www.google.com/search?q=gsl_sf_fermi_dirac_inc_0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
164 | fermi_dirac_inc_0 :: Double -> Double -> Double | 90 | fermi_dirac_inc_0 :: Double -> Double -> Double |
165 | fermi_dirac_inc_0 = gsl_sf_fermi_dirac_inc_0 | 91 | fermi_dirac_inc_0 = gsl_sf_fermi_dirac_inc_0 |
166 | foreign import ccall "gsl_sf_fermi_dirac_inc_0" gsl_sf_fermi_dirac_inc_0 :: Double -> Double -> Double | 92 | foreign import ccall "gsl_sf_fermi_dirac_inc_0" gsl_sf_fermi_dirac_inc_0 :: Double -> Double -> Double |