diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Zeta.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Zeta.hs | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lib/Numeric/GSL/Special/Zeta.hs b/lib/Numeric/GSL/Special/Zeta.hs index 48c8ff1..4970834 100644 --- a/lib/Numeric/GSL/Special/Zeta.hs +++ b/lib/Numeric/GSL/Special/Zeta.hs | |||
@@ -32,28 +32,29 @@ module Numeric.GSL.Special.Zeta( | |||
32 | ) where | 32 | ) where |
33 | 33 | ||
34 | import Foreign(Ptr) | 34 | import Foreign(Ptr) |
35 | import Foreign.C.Types(CInt) | ||
35 | import Numeric.GSL.Special.Internal | 36 | import Numeric.GSL.Special.Internal |
36 | 37 | ||
37 | -- | wrapper for int gsl_sf_zeta_int_e(int n,gsl_sf_result* result); | 38 | -- | wrapper for int gsl_sf_zeta_int_e(int n,gsl_sf_result* result); |
38 | -- | 39 | -- |
39 | -- <http://www.google.com/search?q=gsl_sf_zeta_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 40 | -- <http://www.google.com/search?q=gsl_sf_zeta_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
40 | zeta_int_e :: Int -> (Double,Double) | 41 | zeta_int_e :: CInt -> (Double,Double) |
41 | zeta_int_e n = createSFR "zeta_int_e" $ gsl_sf_zeta_int_e n | 42 | zeta_int_e n = createSFR "zeta_int_e" $ gsl_sf_zeta_int_e n |
42 | foreign import ccall "zeta.h gsl_sf_zeta_int_e" gsl_sf_zeta_int_e :: Int -> Ptr Double -> IO(Int) | 43 | foreign import ccall "zeta.h gsl_sf_zeta_int_e" gsl_sf_zeta_int_e :: CInt -> Ptr () -> IO CInt |
43 | 44 | ||
44 | -- | wrapper for double gsl_sf_zeta_int(int n); | 45 | -- | wrapper for double gsl_sf_zeta_int(int n); |
45 | -- | 46 | -- |
46 | -- <http://www.google.com/search?q=gsl_sf_zeta_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 47 | -- <http://www.google.com/search?q=gsl_sf_zeta_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
47 | zeta_int :: Int -> Double | 48 | zeta_int :: CInt -> Double |
48 | zeta_int = gsl_sf_zeta_int | 49 | zeta_int = gsl_sf_zeta_int |
49 | foreign import ccall "zeta.h gsl_sf_zeta_int" gsl_sf_zeta_int :: Int -> Double | 50 | foreign import ccall "zeta.h gsl_sf_zeta_int" gsl_sf_zeta_int :: CInt -> Double |
50 | 51 | ||
51 | -- | wrapper for int gsl_sf_zeta_e(double s,gsl_sf_result* result); | 52 | -- | wrapper for int gsl_sf_zeta_e(double s,gsl_sf_result* result); |
52 | -- | 53 | -- |
53 | -- <http://www.google.com/search?q=gsl_sf_zeta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 54 | -- <http://www.google.com/search?q=gsl_sf_zeta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
54 | zeta_e :: Double -> (Double,Double) | 55 | zeta_e :: Double -> (Double,Double) |
55 | zeta_e s = createSFR "zeta_e" $ gsl_sf_zeta_e s | 56 | zeta_e s = createSFR "zeta_e" $ gsl_sf_zeta_e s |
56 | foreign import ccall "zeta.h gsl_sf_zeta_e" gsl_sf_zeta_e :: Double -> Ptr Double -> IO(Int) | 57 | foreign import ccall "zeta.h gsl_sf_zeta_e" gsl_sf_zeta_e :: Double -> Ptr () -> IO CInt |
57 | 58 | ||
58 | -- | wrapper for double gsl_sf_zeta(double s); | 59 | -- | wrapper for double gsl_sf_zeta(double s); |
59 | -- | 60 | -- |
@@ -67,7 +68,7 @@ foreign import ccall "zeta.h gsl_sf_zeta" gsl_sf_zeta :: Double -> Double | |||
67 | -- <http://www.google.com/search?q=gsl_sf_zetam1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 68 | -- <http://www.google.com/search?q=gsl_sf_zetam1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
68 | zetam1_e :: Double -> (Double,Double) | 69 | zetam1_e :: Double -> (Double,Double) |
69 | zetam1_e s = createSFR "zetam1_e" $ gsl_sf_zetam1_e s | 70 | zetam1_e s = createSFR "zetam1_e" $ gsl_sf_zetam1_e s |
70 | foreign import ccall "zeta.h gsl_sf_zetam1_e" gsl_sf_zetam1_e :: Double -> Ptr Double -> IO(Int) | 71 | foreign import ccall "zeta.h gsl_sf_zetam1_e" gsl_sf_zetam1_e :: Double -> Ptr () -> IO CInt |
71 | 72 | ||
72 | -- | wrapper for double gsl_sf_zetam1(double s); | 73 | -- | wrapper for double gsl_sf_zetam1(double s); |
73 | -- | 74 | -- |
@@ -79,23 +80,23 @@ foreign import ccall "zeta.h gsl_sf_zetam1" gsl_sf_zetam1 :: Double -> Double | |||
79 | -- | wrapper for int gsl_sf_zetam1_int_e(int s,gsl_sf_result* result); | 80 | -- | wrapper for int gsl_sf_zetam1_int_e(int s,gsl_sf_result* result); |
80 | -- | 81 | -- |
81 | -- <http://www.google.com/search?q=gsl_sf_zetam1_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 82 | -- <http://www.google.com/search?q=gsl_sf_zetam1_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
82 | zetam1_int_e :: Int -> (Double,Double) | 83 | zetam1_int_e :: CInt -> (Double,Double) |
83 | zetam1_int_e s = createSFR "zetam1_int_e" $ gsl_sf_zetam1_int_e s | 84 | zetam1_int_e s = createSFR "zetam1_int_e" $ gsl_sf_zetam1_int_e s |
84 | foreign import ccall "zeta.h gsl_sf_zetam1_int_e" gsl_sf_zetam1_int_e :: Int -> Ptr Double -> IO(Int) | 85 | foreign import ccall "zeta.h gsl_sf_zetam1_int_e" gsl_sf_zetam1_int_e :: CInt -> Ptr () -> IO CInt |
85 | 86 | ||
86 | -- | wrapper for double gsl_sf_zetam1_int(int s); | 87 | -- | wrapper for double gsl_sf_zetam1_int(int s); |
87 | -- | 88 | -- |
88 | -- <http://www.google.com/search?q=gsl_sf_zetam1_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 89 | -- <http://www.google.com/search?q=gsl_sf_zetam1_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
89 | zetam1_int :: Int -> Double | 90 | zetam1_int :: CInt -> Double |
90 | zetam1_int = gsl_sf_zetam1_int | 91 | zetam1_int = gsl_sf_zetam1_int |
91 | foreign import ccall "zeta.h gsl_sf_zetam1_int" gsl_sf_zetam1_int :: Int -> Double | 92 | foreign import ccall "zeta.h gsl_sf_zetam1_int" gsl_sf_zetam1_int :: CInt -> Double |
92 | 93 | ||
93 | -- | wrapper for int gsl_sf_hzeta_e(double s,double q,gsl_sf_result* result); | 94 | -- | wrapper for int gsl_sf_hzeta_e(double s,double q,gsl_sf_result* result); |
94 | -- | 95 | -- |
95 | -- <http://www.google.com/search?q=gsl_sf_hzeta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 96 | -- <http://www.google.com/search?q=gsl_sf_hzeta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
96 | hzeta_e :: Double -> Double -> (Double,Double) | 97 | hzeta_e :: Double -> Double -> (Double,Double) |
97 | hzeta_e s q = createSFR "hzeta_e" $ gsl_sf_hzeta_e s q | 98 | hzeta_e s q = createSFR "hzeta_e" $ gsl_sf_hzeta_e s q |
98 | foreign import ccall "zeta.h gsl_sf_hzeta_e" gsl_sf_hzeta_e :: Double -> Double -> Ptr Double -> IO(Int) | 99 | foreign import ccall "zeta.h gsl_sf_hzeta_e" gsl_sf_hzeta_e :: Double -> Double -> Ptr () -> IO CInt |
99 | 100 | ||
100 | -- | wrapper for double gsl_sf_hzeta(double s,double q); | 101 | -- | wrapper for double gsl_sf_hzeta(double s,double q); |
101 | -- | 102 | -- |
@@ -107,23 +108,23 @@ foreign import ccall "zeta.h gsl_sf_hzeta" gsl_sf_hzeta :: Double -> Double -> D | |||
107 | -- | wrapper for int gsl_sf_eta_int_e(int n,gsl_sf_result* result); | 108 | -- | wrapper for int gsl_sf_eta_int_e(int n,gsl_sf_result* result); |
108 | -- | 109 | -- |
109 | -- <http://www.google.com/search?q=gsl_sf_eta_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 110 | -- <http://www.google.com/search?q=gsl_sf_eta_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
110 | eta_int_e :: Int -> (Double,Double) | 111 | eta_int_e :: CInt -> (Double,Double) |
111 | eta_int_e n = createSFR "eta_int_e" $ gsl_sf_eta_int_e n | 112 | eta_int_e n = createSFR "eta_int_e" $ gsl_sf_eta_int_e n |
112 | foreign import ccall "zeta.h gsl_sf_eta_int_e" gsl_sf_eta_int_e :: Int -> Ptr Double -> IO(Int) | 113 | foreign import ccall "zeta.h gsl_sf_eta_int_e" gsl_sf_eta_int_e :: CInt -> Ptr () -> IO CInt |
113 | 114 | ||
114 | -- | wrapper for double gsl_sf_eta_int(int n); | 115 | -- | wrapper for double gsl_sf_eta_int(int n); |
115 | -- | 116 | -- |
116 | -- <http://www.google.com/search?q=gsl_sf_eta_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 117 | -- <http://www.google.com/search?q=gsl_sf_eta_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
117 | eta_int :: Int -> Double | 118 | eta_int :: CInt -> Double |
118 | eta_int = gsl_sf_eta_int | 119 | eta_int = gsl_sf_eta_int |
119 | foreign import ccall "zeta.h gsl_sf_eta_int" gsl_sf_eta_int :: Int -> Double | 120 | foreign import ccall "zeta.h gsl_sf_eta_int" gsl_sf_eta_int :: CInt -> Double |
120 | 121 | ||
121 | -- | wrapper for int gsl_sf_eta_e(double s,gsl_sf_result* result); | 122 | -- | wrapper for int gsl_sf_eta_e(double s,gsl_sf_result* result); |
122 | -- | 123 | -- |
123 | -- <http://www.google.com/search?q=gsl_sf_eta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 124 | -- <http://www.google.com/search?q=gsl_sf_eta_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
124 | eta_e :: Double -> (Double,Double) | 125 | eta_e :: Double -> (Double,Double) |
125 | eta_e s = createSFR "eta_e" $ gsl_sf_eta_e s | 126 | eta_e s = createSFR "eta_e" $ gsl_sf_eta_e s |
126 | foreign import ccall "zeta.h gsl_sf_eta_e" gsl_sf_eta_e :: Double -> Ptr Double -> IO(Int) | 127 | foreign import ccall "zeta.h gsl_sf_eta_e" gsl_sf_eta_e :: Double -> Ptr () -> IO CInt |
127 | 128 | ||
128 | -- | wrapper for double gsl_sf_eta(double s); | 129 | -- | wrapper for double gsl_sf_eta(double s); |
129 | -- | 130 | -- |