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/Exp.hs | |
parent | 45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff) |
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Exp.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Exp.hs | 100 |
1 files changed, 11 insertions, 89 deletions
diff --git a/lib/Numeric/GSL/Special/Exp.hs b/lib/Numeric/GSL/Special/Exp.hs index da7bff1..fa3a15e 100644 --- a/lib/Numeric/GSL/Special/Exp.hs +++ b/lib/Numeric/GSL/Special/Exp.hs | |||
@@ -1,17 +1,15 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | {- | | 2 | -- | |
3 | Module : Numeric.GSL.Special.Exp | 3 | -- Module : Numeric.GSL.Special.Exp |
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_exp.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 12 | -- <http://www.google.com/search?q=gsl_sf_exp.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | 13 | ------------------------------------------------------------ |
16 | 14 | ||
17 | module Numeric.GSL.Special.Exp( | 15 | module Numeric.GSL.Special.Exp( |
@@ -39,136 +37,60 @@ module Numeric.GSL.Special.Exp( | |||
39 | import Foreign(Ptr) | 37 | import Foreign(Ptr) |
40 | import Foreign.C.Types(CInt) | 38 | import Foreign.C.Types(CInt) |
41 | import Numeric.GSL.Special.Internal | 39 | import Numeric.GSL.Special.Internal |
42 | |||
43 | -- | wrapper for int gsl_sf_exp_e(double x,gsl_sf_result* result); | ||
44 | -- | ||
45 | -- <http://www.google.com/search?q=gsl_sf_exp_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
46 | exp_e :: Double -> (Double,Double) | 40 | exp_e :: Double -> (Double,Double) |
47 | exp_e x = createSFR "exp_e" $ gsl_sf_exp_e x | 41 | exp_e x = createSFR "exp_e" $ gsl_sf_exp_e x |
48 | foreign import ccall "gsl_sf_exp_e" gsl_sf_exp_e :: Double -> Ptr () -> IO CInt | 42 | foreign import ccall "gsl_sf_exp_e" gsl_sf_exp_e :: Double -> Ptr () -> IO CInt |
49 | |||
50 | -- | wrapper for double gsl_sf_exp(double x); | ||
51 | -- | ||
52 | -- <http://www.google.com/search?q=gsl_sf_exp&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
53 | exp :: Double -> Double | 43 | exp :: Double -> Double |
54 | exp = gsl_sf_exp | 44 | exp = gsl_sf_exp |
55 | foreign import ccall "gsl_sf_exp" gsl_sf_exp :: Double -> Double | 45 | foreign import ccall "gsl_sf_exp" gsl_sf_exp :: Double -> Double |
56 | |||
57 | -- | wrapper for int gsl_sf_exp_e10_e(double x,gsl_sf_result_e10* result); | ||
58 | -- | ||
59 | -- <http://www.google.com/search?q=gsl_sf_exp_e10_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
60 | exp_e10_e :: Double -> (Double,Int,Double) | 46 | exp_e10_e :: Double -> (Double,Int,Double) |
61 | exp_e10_e x = createSFR_E10 "exp_e10_e" $ gsl_sf_exp_e10_e x | 47 | exp_e10_e x = createSFR_E10 "exp_e10_e" $ gsl_sf_exp_e10_e x |
62 | foreign import ccall "gsl_sf_exp_e10_e" gsl_sf_exp_e10_e :: Double -> Ptr () -> IO CInt | 48 | foreign import ccall "gsl_sf_exp_e10_e" gsl_sf_exp_e10_e :: Double -> Ptr () -> IO CInt |
63 | |||
64 | -- | wrapper for int gsl_sf_exp_mult_e(double x,double y,gsl_sf_result* result); | ||
65 | -- | ||
66 | -- <http://www.google.com/search?q=gsl_sf_exp_mult_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
67 | exp_mult_e :: Double -> Double -> (Double,Double) | 49 | exp_mult_e :: Double -> Double -> (Double,Double) |
68 | exp_mult_e x y = createSFR "exp_mult_e" $ gsl_sf_exp_mult_e x y | 50 | exp_mult_e x y = createSFR "exp_mult_e" $ gsl_sf_exp_mult_e x y |
69 | foreign import ccall "gsl_sf_exp_mult_e" gsl_sf_exp_mult_e :: Double -> Double -> Ptr () -> IO CInt | 51 | foreign import ccall "gsl_sf_exp_mult_e" gsl_sf_exp_mult_e :: Double -> Double -> Ptr () -> IO CInt |
70 | |||
71 | -- | wrapper for double gsl_sf_exp_mult(double x,double y); | ||
72 | -- | ||
73 | -- <http://www.google.com/search?q=gsl_sf_exp_mult&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
74 | exp_mult :: Double -> Double -> Double | 52 | exp_mult :: Double -> Double -> Double |
75 | exp_mult = gsl_sf_exp_mult | 53 | exp_mult = gsl_sf_exp_mult |
76 | foreign import ccall "gsl_sf_exp_mult" gsl_sf_exp_mult :: Double -> Double -> Double | 54 | foreign import ccall "gsl_sf_exp_mult" gsl_sf_exp_mult :: Double -> Double -> Double |
77 | |||
78 | -- | wrapper for int gsl_sf_exp_mult_e10_e(double x,double y,gsl_sf_result_e10* result); | ||
79 | -- | ||
80 | -- <http://www.google.com/search?q=gsl_sf_exp_mult_e10_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
81 | exp_mult_e10_e :: Double -> Double -> (Double,Int,Double) | 55 | exp_mult_e10_e :: Double -> Double -> (Double,Int,Double) |
82 | exp_mult_e10_e x y = createSFR_E10 "exp_mult_e10_e" $ gsl_sf_exp_mult_e10_e x y | 56 | exp_mult_e10_e x y = createSFR_E10 "exp_mult_e10_e" $ gsl_sf_exp_mult_e10_e x y |
83 | foreign import ccall "gsl_sf_exp_mult_e10_e" gsl_sf_exp_mult_e10_e :: Double -> Double -> Ptr () -> IO CInt | 57 | foreign import ccall "gsl_sf_exp_mult_e10_e" gsl_sf_exp_mult_e10_e :: Double -> Double -> Ptr () -> IO CInt |
84 | |||
85 | -- | wrapper for int gsl_sf_expm1_e(double x,gsl_sf_result* result); | ||
86 | -- | ||
87 | -- <http://www.google.com/search?q=gsl_sf_expm1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
88 | expm1_e :: Double -> (Double,Double) | 58 | expm1_e :: Double -> (Double,Double) |
89 | expm1_e x = createSFR "expm1_e" $ gsl_sf_expm1_e x | 59 | expm1_e x = createSFR "expm1_e" $ gsl_sf_expm1_e x |
90 | foreign import ccall "gsl_sf_expm1_e" gsl_sf_expm1_e :: Double -> Ptr () -> IO CInt | 60 | foreign import ccall "gsl_sf_expm1_e" gsl_sf_expm1_e :: Double -> Ptr () -> IO CInt |
91 | |||
92 | -- | wrapper for double gsl_sf_expm1(double x); | ||
93 | -- | ||
94 | -- <http://www.google.com/search?q=gsl_sf_expm1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
95 | expm1 :: Double -> Double | 61 | expm1 :: Double -> Double |
96 | expm1 = gsl_sf_expm1 | 62 | expm1 = gsl_sf_expm1 |
97 | foreign import ccall "gsl_sf_expm1" gsl_sf_expm1 :: Double -> Double | 63 | foreign import ccall "gsl_sf_expm1" gsl_sf_expm1 :: Double -> Double |
98 | |||
99 | -- | wrapper for int gsl_sf_exprel_e(double x,gsl_sf_result* result); | ||
100 | -- | ||
101 | -- <http://www.google.com/search?q=gsl_sf_exprel_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
102 | exprel_e :: Double -> (Double,Double) | 64 | exprel_e :: Double -> (Double,Double) |
103 | exprel_e x = createSFR "exprel_e" $ gsl_sf_exprel_e x | 65 | exprel_e x = createSFR "exprel_e" $ gsl_sf_exprel_e x |
104 | foreign import ccall "gsl_sf_exprel_e" gsl_sf_exprel_e :: Double -> Ptr () -> IO CInt | 66 | foreign import ccall "gsl_sf_exprel_e" gsl_sf_exprel_e :: Double -> Ptr () -> IO CInt |
105 | |||
106 | -- | wrapper for double gsl_sf_exprel(double x); | ||
107 | -- | ||
108 | -- <http://www.google.com/search?q=gsl_sf_exprel&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
109 | exprel :: Double -> Double | 67 | exprel :: Double -> Double |
110 | exprel = gsl_sf_exprel | 68 | exprel = gsl_sf_exprel |
111 | foreign import ccall "gsl_sf_exprel" gsl_sf_exprel :: Double -> Double | 69 | foreign import ccall "gsl_sf_exprel" gsl_sf_exprel :: Double -> Double |
112 | |||
113 | -- | wrapper for int gsl_sf_exprel_2_e(double x,gsl_sf_result* result); | ||
114 | -- | ||
115 | -- <http://www.google.com/search?q=gsl_sf_exprel_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
116 | exprel_2_e :: Double -> (Double,Double) | 70 | exprel_2_e :: Double -> (Double,Double) |
117 | exprel_2_e x = createSFR "exprel_2_e" $ gsl_sf_exprel_2_e x | 71 | exprel_2_e x = createSFR "exprel_2_e" $ gsl_sf_exprel_2_e x |
118 | foreign import ccall "gsl_sf_exprel_2_e" gsl_sf_exprel_2_e :: Double -> Ptr () -> IO CInt | 72 | foreign import ccall "gsl_sf_exprel_2_e" gsl_sf_exprel_2_e :: Double -> Ptr () -> IO CInt |
119 | |||
120 | -- | wrapper for double gsl_sf_exprel_2(double x); | ||
121 | -- | ||
122 | -- <http://www.google.com/search?q=gsl_sf_exprel_2&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
123 | exprel_2 :: Double -> Double | 73 | exprel_2 :: Double -> Double |
124 | exprel_2 = gsl_sf_exprel_2 | 74 | exprel_2 = gsl_sf_exprel_2 |
125 | foreign import ccall "gsl_sf_exprel_2" gsl_sf_exprel_2 :: Double -> Double | 75 | foreign import ccall "gsl_sf_exprel_2" gsl_sf_exprel_2 :: Double -> Double |
126 | |||
127 | -- | wrapper for int gsl_sf_exprel_n_e(int n,double x,gsl_sf_result* result); | ||
128 | -- | ||
129 | -- <http://www.google.com/search?q=gsl_sf_exprel_n_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
130 | exprel_n_e :: CInt -> Double -> (Double,Double) | 76 | exprel_n_e :: CInt -> Double -> (Double,Double) |
131 | exprel_n_e n x = createSFR "exprel_n_e" $ gsl_sf_exprel_n_e n x | 77 | exprel_n_e n x = createSFR "exprel_n_e" $ gsl_sf_exprel_n_e n x |
132 | foreign import ccall "gsl_sf_exprel_n_e" gsl_sf_exprel_n_e :: CInt -> Double -> Ptr () -> IO CInt | 78 | foreign import ccall "gsl_sf_exprel_n_e" gsl_sf_exprel_n_e :: CInt -> Double -> Ptr () -> IO CInt |
133 | |||
134 | -- | wrapper for double gsl_sf_exprel_n(int n,double x); | ||
135 | -- | ||
136 | -- <http://www.google.com/search?q=gsl_sf_exprel_n&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
137 | exprel_n :: CInt -> Double -> Double | 79 | exprel_n :: CInt -> Double -> Double |
138 | exprel_n = gsl_sf_exprel_n | 80 | exprel_n = gsl_sf_exprel_n |
139 | foreign import ccall "gsl_sf_exprel_n" gsl_sf_exprel_n :: CInt -> Double -> Double | 81 | foreign import ccall "gsl_sf_exprel_n" gsl_sf_exprel_n :: CInt -> Double -> Double |
140 | |||
141 | -- | wrapper for int gsl_sf_exprel_n_CF_e(double n,double x,gsl_sf_result* result); | ||
142 | -- | ||
143 | -- <http://www.google.com/search?q=gsl_sf_exprel_n_CF_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
144 | exprel_n_CF_e :: Double -> Double -> (Double,Double) | 82 | exprel_n_CF_e :: Double -> Double -> (Double,Double) |
145 | exprel_n_CF_e n x = createSFR "exprel_n_CF_e" $ gsl_sf_exprel_n_CF_e n x | 83 | exprel_n_CF_e n x = createSFR "exprel_n_CF_e" $ gsl_sf_exprel_n_CF_e n x |
146 | foreign import ccall "gsl_sf_exprel_n_CF_e" gsl_sf_exprel_n_CF_e :: Double -> Double -> Ptr () -> IO CInt | 84 | foreign import ccall "gsl_sf_exprel_n_CF_e" gsl_sf_exprel_n_CF_e :: Double -> Double -> Ptr () -> IO CInt |
147 | |||
148 | -- | wrapper for int gsl_sf_exp_err_e(double x,double dx,gsl_sf_result* result); | ||
149 | -- | ||
150 | -- <http://www.google.com/search?q=gsl_sf_exp_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
151 | exp_err_e :: Double -> Double -> (Double,Double) | 85 | exp_err_e :: Double -> Double -> (Double,Double) |
152 | exp_err_e x dx = createSFR "exp_err_e" $ gsl_sf_exp_err_e x dx | 86 | exp_err_e x dx = createSFR "exp_err_e" $ gsl_sf_exp_err_e x dx |
153 | foreign import ccall "gsl_sf_exp_err_e" gsl_sf_exp_err_e :: Double -> Double -> Ptr () -> IO CInt | 87 | foreign import ccall "gsl_sf_exp_err_e" gsl_sf_exp_err_e :: Double -> Double -> Ptr () -> IO CInt |
154 | |||
155 | -- | wrapper for int gsl_sf_exp_err_e10_e(double x,double dx,gsl_sf_result_e10* result); | ||
156 | -- | ||
157 | -- <http://www.google.com/search?q=gsl_sf_exp_err_e10_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
158 | exp_err_e10_e :: Double -> Double -> (Double,Int,Double) | 88 | exp_err_e10_e :: Double -> Double -> (Double,Int,Double) |
159 | exp_err_e10_e x dx = createSFR_E10 "exp_err_e10_e" $ gsl_sf_exp_err_e10_e x dx | 89 | exp_err_e10_e x dx = createSFR_E10 "exp_err_e10_e" $ gsl_sf_exp_err_e10_e x dx |
160 | foreign import ccall "gsl_sf_exp_err_e10_e" gsl_sf_exp_err_e10_e :: Double -> Double -> Ptr () -> IO CInt | 90 | foreign import ccall "gsl_sf_exp_err_e10_e" gsl_sf_exp_err_e10_e :: Double -> Double -> Ptr () -> IO CInt |
161 | |||
162 | -- | wrapper for int gsl_sf_exp_mult_err_e(double x,double dx,double y,double dy,gsl_sf_result* result); | ||
163 | -- | ||
164 | -- <http://www.google.com/search?q=gsl_sf_exp_mult_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
165 | exp_mult_err_e :: Double -> Double -> Double -> Double -> (Double,Double) | 91 | exp_mult_err_e :: Double -> Double -> Double -> Double -> (Double,Double) |
166 | exp_mult_err_e x dx y dy = createSFR "exp_mult_err_e" $ gsl_sf_exp_mult_err_e x dx y dy | 92 | exp_mult_err_e x dx y dy = createSFR "exp_mult_err_e" $ gsl_sf_exp_mult_err_e x dx y dy |
167 | foreign import ccall "gsl_sf_exp_mult_err_e" gsl_sf_exp_mult_err_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt | 93 | foreign import ccall "gsl_sf_exp_mult_err_e" gsl_sf_exp_mult_err_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt |
168 | |||
169 | -- | wrapper for int gsl_sf_exp_mult_err_e10_e(double x,double dx,double y,double dy,gsl_sf_result_e10* result); | ||
170 | -- | ||
171 | -- <http://www.google.com/search?q=gsl_sf_exp_mult_err_e10_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
172 | exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> (Double,Int,Double) | 94 | exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> (Double,Int,Double) |
173 | exp_mult_err_e10_e x dx y dy = createSFR_E10 "exp_mult_err_e10_e" $ gsl_sf_exp_mult_err_e10_e x dx y dy | 95 | exp_mult_err_e10_e x dx y dy = createSFR_E10 "exp_mult_err_e10_e" $ gsl_sf_exp_mult_err_e10_e x dx y dy |
174 | foreign import ccall "gsl_sf_exp_mult_err_e10_e" gsl_sf_exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt | 96 | foreign import ccall "gsl_sf_exp_mult_err_e10_e" gsl_sf_exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt |