diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Psi.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Psi.hs | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/lib/Numeric/GSL/Special/Psi.hs b/lib/Numeric/GSL/Special/Psi.hs index c0021e4..3ff6570 100644 --- a/lib/Numeric/GSL/Special/Psi.hs +++ b/lib/Numeric/GSL/Special/Psi.hs | |||
@@ -30,28 +30,29 @@ module Numeric.GSL.Special.Psi( | |||
30 | ) where | 30 | ) where |
31 | 31 | ||
32 | import Foreign(Ptr) | 32 | import Foreign(Ptr) |
33 | import Foreign.C.Types(CInt) | ||
33 | import Numeric.GSL.Special.Internal | 34 | import Numeric.GSL.Special.Internal |
34 | 35 | ||
35 | -- | wrapper for int gsl_sf_psi_int_e(int n,gsl_sf_result* result); | 36 | -- | wrapper for int gsl_sf_psi_int_e(int n,gsl_sf_result* result); |
36 | -- | 37 | -- |
37 | -- <http://www.google.com/search?q=gsl_sf_psi_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 38 | -- <http://www.google.com/search?q=gsl_sf_psi_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
38 | psi_int_e :: Int -> (Double,Double) | 39 | psi_int_e :: CInt -> (Double,Double) |
39 | psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n | 40 | psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n |
40 | foreign import ccall "psi.h gsl_sf_psi_int_e" gsl_sf_psi_int_e :: Int -> Ptr Double -> IO(Int) | 41 | foreign import ccall "psi.h gsl_sf_psi_int_e" gsl_sf_psi_int_e :: CInt -> Ptr () -> IO CInt |
41 | 42 | ||
42 | -- | wrapper for double gsl_sf_psi_int(int n); | 43 | -- | wrapper for double gsl_sf_psi_int(int n); |
43 | -- | 44 | -- |
44 | -- <http://www.google.com/search?q=gsl_sf_psi_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 45 | -- <http://www.google.com/search?q=gsl_sf_psi_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
45 | psi_int :: Int -> Double | 46 | psi_int :: CInt -> Double |
46 | psi_int = gsl_sf_psi_int | 47 | psi_int = gsl_sf_psi_int |
47 | foreign import ccall "psi.h gsl_sf_psi_int" gsl_sf_psi_int :: Int -> Double | 48 | foreign import ccall "psi.h gsl_sf_psi_int" gsl_sf_psi_int :: CInt -> Double |
48 | 49 | ||
49 | -- | wrapper for int gsl_sf_psi_e(double x,gsl_sf_result* result); | 50 | -- | wrapper for int gsl_sf_psi_e(double x,gsl_sf_result* result); |
50 | -- | 51 | -- |
51 | -- <http://www.google.com/search?q=gsl_sf_psi_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 52 | -- <http://www.google.com/search?q=gsl_sf_psi_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
52 | psi_e :: Double -> (Double,Double) | 53 | psi_e :: Double -> (Double,Double) |
53 | psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x | 54 | psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x |
54 | foreign import ccall "psi.h gsl_sf_psi_e" gsl_sf_psi_e :: Double -> Ptr Double -> IO(Int) | 55 | foreign import ccall "psi.h gsl_sf_psi_e" gsl_sf_psi_e :: Double -> Ptr () -> IO CInt |
55 | 56 | ||
56 | -- | wrapper for double gsl_sf_psi(double x); | 57 | -- | wrapper for double gsl_sf_psi(double x); |
57 | -- | 58 | -- |
@@ -65,7 +66,7 @@ foreign import ccall "psi.h gsl_sf_psi" gsl_sf_psi :: Double -> Double | |||
65 | -- <http://www.google.com/search?q=gsl_sf_psi_1piy_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 66 | -- <http://www.google.com/search?q=gsl_sf_psi_1piy_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
66 | psi_1piy_e :: Double -> (Double,Double) | 67 | psi_1piy_e :: Double -> (Double,Double) |
67 | psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y | 68 | psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y |
68 | foreign import ccall "psi.h gsl_sf_psi_1piy_e" gsl_sf_psi_1piy_e :: Double -> Ptr Double -> IO(Int) | 69 | foreign import ccall "psi.h gsl_sf_psi_1piy_e" gsl_sf_psi_1piy_e :: Double -> Ptr () -> IO CInt |
69 | 70 | ||
70 | -- | wrapper for double gsl_sf_psi_1piy(double y); | 71 | -- | wrapper for double gsl_sf_psi_1piy(double y); |
71 | -- | 72 | -- |
@@ -74,26 +75,33 @@ psi_1piy :: Double -> Double | |||
74 | psi_1piy = gsl_sf_psi_1piy | 75 | psi_1piy = gsl_sf_psi_1piy |
75 | foreign import ccall "psi.h gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double | 76 | foreign import ccall "psi.h gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double |
76 | 77 | ||
78 | -- | wrapper for int gsl_sf_complex_psi_e(double x,double y,gsl_sf_result* result_re,gsl_sf_result* result_im); | ||
79 | -- | ||
80 | -- <http://www.google.com/search?q=gsl_sf_complex_psi_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
81 | complex_psi_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
82 | complex_psi_e x y result_re = createSFR "complex_psi_e" $ gsl_sf_complex_psi_e x y result_re | ||
83 | foreign import ccall "psi.h gsl_sf_complex_psi_e" gsl_sf_complex_psi_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
84 | |||
77 | -- | wrapper for int gsl_sf_psi_1_int_e(int n,gsl_sf_result* result); | 85 | -- | wrapper for int gsl_sf_psi_1_int_e(int n,gsl_sf_result* result); |
78 | -- | 86 | -- |
79 | -- <http://www.google.com/search?q=gsl_sf_psi_1_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 87 | -- <http://www.google.com/search?q=gsl_sf_psi_1_int_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
80 | psi_1_int_e :: Int -> (Double,Double) | 88 | psi_1_int_e :: CInt -> (Double,Double) |
81 | psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n | 89 | psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n |
82 | foreign import ccall "psi.h gsl_sf_psi_1_int_e" gsl_sf_psi_1_int_e :: Int -> Ptr Double -> IO(Int) | 90 | foreign import ccall "psi.h gsl_sf_psi_1_int_e" gsl_sf_psi_1_int_e :: CInt -> Ptr () -> IO CInt |
83 | 91 | ||
84 | -- | wrapper for double gsl_sf_psi_1_int(int n); | 92 | -- | wrapper for double gsl_sf_psi_1_int(int n); |
85 | -- | 93 | -- |
86 | -- <http://www.google.com/search?q=gsl_sf_psi_1_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 94 | -- <http://www.google.com/search?q=gsl_sf_psi_1_int&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
87 | psi_1_int :: Int -> Double | 95 | psi_1_int :: CInt -> Double |
88 | psi_1_int = gsl_sf_psi_1_int | 96 | psi_1_int = gsl_sf_psi_1_int |
89 | foreign import ccall "psi.h gsl_sf_psi_1_int" gsl_sf_psi_1_int :: Int -> Double | 97 | foreign import ccall "psi.h gsl_sf_psi_1_int" gsl_sf_psi_1_int :: CInt -> Double |
90 | 98 | ||
91 | -- | wrapper for int gsl_sf_psi_1_e(double x,gsl_sf_result* result); | 99 | -- | wrapper for int gsl_sf_psi_1_e(double x,gsl_sf_result* result); |
92 | -- | 100 | -- |
93 | -- <http://www.google.com/search?q=gsl_sf_psi_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 101 | -- <http://www.google.com/search?q=gsl_sf_psi_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
94 | psi_1_e :: Double -> (Double,Double) | 102 | psi_1_e :: Double -> (Double,Double) |
95 | psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x | 103 | psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x |
96 | foreign import ccall "psi.h gsl_sf_psi_1_e" gsl_sf_psi_1_e :: Double -> Ptr Double -> IO(Int) | 104 | foreign import ccall "psi.h gsl_sf_psi_1_e" gsl_sf_psi_1_e :: Double -> Ptr () -> IO CInt |
97 | 105 | ||
98 | -- | wrapper for double gsl_sf_psi_1(double x); | 106 | -- | wrapper for double gsl_sf_psi_1(double x); |
99 | -- | 107 | -- |
@@ -105,13 +113,13 @@ foreign import ccall "psi.h gsl_sf_psi_1" gsl_sf_psi_1 :: Double -> Double | |||
105 | -- | wrapper for int gsl_sf_psi_n_e(int n,double x,gsl_sf_result* result); | 113 | -- | wrapper for int gsl_sf_psi_n_e(int n,double x,gsl_sf_result* result); |
106 | -- | 114 | -- |
107 | -- <http://www.google.com/search?q=gsl_sf_psi_n_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 115 | -- <http://www.google.com/search?q=gsl_sf_psi_n_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
108 | psi_n_e :: Int -> Double -> (Double,Double) | 116 | psi_n_e :: CInt -> Double -> (Double,Double) |
109 | psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x | 117 | psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x |
110 | foreign import ccall "psi.h gsl_sf_psi_n_e" gsl_sf_psi_n_e :: Int -> Double -> Ptr Double -> IO(Int) | 118 | foreign import ccall "psi.h gsl_sf_psi_n_e" gsl_sf_psi_n_e :: CInt -> Double -> Ptr () -> IO CInt |
111 | 119 | ||
112 | -- | wrapper for double gsl_sf_psi_n(int n,double x); | 120 | -- | wrapper for double gsl_sf_psi_n(int n,double x); |
113 | -- | 121 | -- |
114 | -- <http://www.google.com/search?q=gsl_sf_psi_n&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 122 | -- <http://www.google.com/search?q=gsl_sf_psi_n&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
115 | psi_n :: Int -> Double -> Double | 123 | psi_n :: CInt -> Double -> Double |
116 | psi_n = gsl_sf_psi_n | 124 | psi_n = gsl_sf_psi_n |
117 | foreign import ccall "psi.h gsl_sf_psi_n" gsl_sf_psi_n :: Int -> Double -> Double | 125 | foreign import ccall "psi.h gsl_sf_psi_n" gsl_sf_psi_n :: CInt -> Double -> Double |