summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Exp.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
committerAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
commite58f1e0e94407983fa18cd535cf76427019f1519 (patch)
tree4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/Exp.hs
parent45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff)
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Exp.hs')
-rw-r--r--lib/Numeric/GSL/Special/Exp.hs100
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-- |
3Module : Numeric.GSL.Special.Exp 3-- Module : Numeric.GSL.Special.Exp
4Copyright : (c) Alberto Ruiz 2006 4-- Copyright : (c) Alberto Ruiz 2006
5License : GPL-style 5-- License : GPL
6Maintainer : Alberto Ruiz (aruiz at um dot es) 6-- Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional 7-- Stability : provisional
8Portability : uses ffi 8-- Portability : uses ffi
9 9--
10Wrappers 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
17module Numeric.GSL.Special.Exp( 15module Numeric.GSL.Special.Exp(
@@ -39,136 +37,60 @@ module Numeric.GSL.Special.Exp(
39import Foreign(Ptr) 37import Foreign(Ptr)
40import Foreign.C.Types(CInt) 38import Foreign.C.Types(CInt)
41import Numeric.GSL.Special.Internal 39import 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>
46exp_e :: Double -> (Double,Double) 40exp_e :: Double -> (Double,Double)
47exp_e x = createSFR "exp_e" $ gsl_sf_exp_e x 41exp_e x = createSFR "exp_e" $ gsl_sf_exp_e x
48foreign import ccall "gsl_sf_exp_e" gsl_sf_exp_e :: Double -> Ptr () -> IO CInt 42foreign 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>
53exp :: Double -> Double 43exp :: Double -> Double
54exp = gsl_sf_exp 44exp = gsl_sf_exp
55foreign import ccall "gsl_sf_exp" gsl_sf_exp :: Double -> Double 45foreign 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>
60exp_e10_e :: Double -> (Double,Int,Double) 46exp_e10_e :: Double -> (Double,Int,Double)
61exp_e10_e x = createSFR_E10 "exp_e10_e" $ gsl_sf_exp_e10_e x 47exp_e10_e x = createSFR_E10 "exp_e10_e" $ gsl_sf_exp_e10_e x
62foreign import ccall "gsl_sf_exp_e10_e" gsl_sf_exp_e10_e :: Double -> Ptr () -> IO CInt 48foreign 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>
67exp_mult_e :: Double -> Double -> (Double,Double) 49exp_mult_e :: Double -> Double -> (Double,Double)
68exp_mult_e x y = createSFR "exp_mult_e" $ gsl_sf_exp_mult_e x y 50exp_mult_e x y = createSFR "exp_mult_e" $ gsl_sf_exp_mult_e x y
69foreign import ccall "gsl_sf_exp_mult_e" gsl_sf_exp_mult_e :: Double -> Double -> Ptr () -> IO CInt 51foreign 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>
74exp_mult :: Double -> Double -> Double 52exp_mult :: Double -> Double -> Double
75exp_mult = gsl_sf_exp_mult 53exp_mult = gsl_sf_exp_mult
76foreign import ccall "gsl_sf_exp_mult" gsl_sf_exp_mult :: Double -> Double -> Double 54foreign 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>
81exp_mult_e10_e :: Double -> Double -> (Double,Int,Double) 55exp_mult_e10_e :: Double -> Double -> (Double,Int,Double)
82exp_mult_e10_e x y = createSFR_E10 "exp_mult_e10_e" $ gsl_sf_exp_mult_e10_e x y 56exp_mult_e10_e x y = createSFR_E10 "exp_mult_e10_e" $ gsl_sf_exp_mult_e10_e x y
83foreign import ccall "gsl_sf_exp_mult_e10_e" gsl_sf_exp_mult_e10_e :: Double -> Double -> Ptr () -> IO CInt 57foreign 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>
88expm1_e :: Double -> (Double,Double) 58expm1_e :: Double -> (Double,Double)
89expm1_e x = createSFR "expm1_e" $ gsl_sf_expm1_e x 59expm1_e x = createSFR "expm1_e" $ gsl_sf_expm1_e x
90foreign import ccall "gsl_sf_expm1_e" gsl_sf_expm1_e :: Double -> Ptr () -> IO CInt 60foreign 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>
95expm1 :: Double -> Double 61expm1 :: Double -> Double
96expm1 = gsl_sf_expm1 62expm1 = gsl_sf_expm1
97foreign import ccall "gsl_sf_expm1" gsl_sf_expm1 :: Double -> Double 63foreign 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>
102exprel_e :: Double -> (Double,Double) 64exprel_e :: Double -> (Double,Double)
103exprel_e x = createSFR "exprel_e" $ gsl_sf_exprel_e x 65exprel_e x = createSFR "exprel_e" $ gsl_sf_exprel_e x
104foreign import ccall "gsl_sf_exprel_e" gsl_sf_exprel_e :: Double -> Ptr () -> IO CInt 66foreign 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>
109exprel :: Double -> Double 67exprel :: Double -> Double
110exprel = gsl_sf_exprel 68exprel = gsl_sf_exprel
111foreign import ccall "gsl_sf_exprel" gsl_sf_exprel :: Double -> Double 69foreign 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>
116exprel_2_e :: Double -> (Double,Double) 70exprel_2_e :: Double -> (Double,Double)
117exprel_2_e x = createSFR "exprel_2_e" $ gsl_sf_exprel_2_e x 71exprel_2_e x = createSFR "exprel_2_e" $ gsl_sf_exprel_2_e x
118foreign import ccall "gsl_sf_exprel_2_e" gsl_sf_exprel_2_e :: Double -> Ptr () -> IO CInt 72foreign 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>
123exprel_2 :: Double -> Double 73exprel_2 :: Double -> Double
124exprel_2 = gsl_sf_exprel_2 74exprel_2 = gsl_sf_exprel_2
125foreign import ccall "gsl_sf_exprel_2" gsl_sf_exprel_2 :: Double -> Double 75foreign 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>
130exprel_n_e :: CInt -> Double -> (Double,Double) 76exprel_n_e :: CInt -> Double -> (Double,Double)
131exprel_n_e n x = createSFR "exprel_n_e" $ gsl_sf_exprel_n_e n x 77exprel_n_e n x = createSFR "exprel_n_e" $ gsl_sf_exprel_n_e n x
132foreign import ccall "gsl_sf_exprel_n_e" gsl_sf_exprel_n_e :: CInt -> Double -> Ptr () -> IO CInt 78foreign 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>
137exprel_n :: CInt -> Double -> Double 79exprel_n :: CInt -> Double -> Double
138exprel_n = gsl_sf_exprel_n 80exprel_n = gsl_sf_exprel_n
139foreign import ccall "gsl_sf_exprel_n" gsl_sf_exprel_n :: CInt -> Double -> Double 81foreign 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>
144exprel_n_CF_e :: Double -> Double -> (Double,Double) 82exprel_n_CF_e :: Double -> Double -> (Double,Double)
145exprel_n_CF_e n x = createSFR "exprel_n_CF_e" $ gsl_sf_exprel_n_CF_e n x 83exprel_n_CF_e n x = createSFR "exprel_n_CF_e" $ gsl_sf_exprel_n_CF_e n x
146foreign import ccall "gsl_sf_exprel_n_CF_e" gsl_sf_exprel_n_CF_e :: Double -> Double -> Ptr () -> IO CInt 84foreign 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>
151exp_err_e :: Double -> Double -> (Double,Double) 85exp_err_e :: Double -> Double -> (Double,Double)
152exp_err_e x dx = createSFR "exp_err_e" $ gsl_sf_exp_err_e x dx 86exp_err_e x dx = createSFR "exp_err_e" $ gsl_sf_exp_err_e x dx
153foreign import ccall "gsl_sf_exp_err_e" gsl_sf_exp_err_e :: Double -> Double -> Ptr () -> IO CInt 87foreign 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>
158exp_err_e10_e :: Double -> Double -> (Double,Int,Double) 88exp_err_e10_e :: Double -> Double -> (Double,Int,Double)
159exp_err_e10_e x dx = createSFR_E10 "exp_err_e10_e" $ gsl_sf_exp_err_e10_e x dx 89exp_err_e10_e x dx = createSFR_E10 "exp_err_e10_e" $ gsl_sf_exp_err_e10_e x dx
160foreign import ccall "gsl_sf_exp_err_e10_e" gsl_sf_exp_err_e10_e :: Double -> Double -> Ptr () -> IO CInt 90foreign 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>
165exp_mult_err_e :: Double -> Double -> Double -> Double -> (Double,Double) 91exp_mult_err_e :: Double -> Double -> Double -> Double -> (Double,Double)
166exp_mult_err_e x dx y dy = createSFR "exp_mult_err_e" $ gsl_sf_exp_mult_err_e x dx y dy 92exp_mult_err_e x dx y dy = createSFR "exp_mult_err_e" $ gsl_sf_exp_mult_err_e x dx y dy
167foreign import ccall "gsl_sf_exp_mult_err_e" gsl_sf_exp_mult_err_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt 93foreign 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>
172exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> (Double,Int,Double) 94exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> (Double,Int,Double)
173exp_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 95exp_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
174foreign import ccall "gsl_sf_exp_mult_err_e10_e" gsl_sf_exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt 96foreign import ccall "gsl_sf_exp_mult_err_e10_e" gsl_sf_exp_mult_err_e10_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt