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