diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-10-01 15:04:16 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-10-01 15:04:16 +0000 |
commit | c99b8fd6e3f8a2fb365ec12baf838f864b118ece (patch) | |
tree | 11b5b8515861fe88d547253ae10c2182d5fadaf2 /lib/Numeric/GSL/Special/Psi.hs | |
parent | 768f08d4134a066d773d56a9c03ae688e3850352 (diff) |
LinearAlgebra and GSL moved to Numeric
Diffstat (limited to 'lib/Numeric/GSL/Special/Psi.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Psi.hs | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Psi.hs b/lib/Numeric/GSL/Special/Psi.hs new file mode 100644 index 0000000..c0021e4 --- /dev/null +++ b/lib/Numeric/GSL/Special/Psi.hs | |||
@@ -0,0 +1,117 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : Numeric.GSL.Special.Psi | ||
4 | Copyright : (c) Alberto Ruiz 2006 | ||
5 | License : GPL-style | ||
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | Stability : provisional | ||
8 | Portability : uses ffi | ||
9 | |||
10 | Wrappers for selected functions described at: | ||
11 | |||
12 | <http://www.google.com/search?q=gsl_sf_psi.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | ||
16 | |||
17 | module Numeric.GSL.Special.Psi( | ||
18 | psi_int_e | ||
19 | , psi_int | ||
20 | , psi_e | ||
21 | , psi | ||
22 | , psi_1piy_e | ||
23 | , psi_1piy | ||
24 | , psi_1_int_e | ||
25 | , psi_1_int | ||
26 | , psi_1_e | ||
27 | , psi_1 | ||
28 | , psi_n_e | ||
29 | , psi_n | ||
30 | ) where | ||
31 | |||
32 | import Foreign(Ptr) | ||
33 | import Numeric.GSL.Special.Internal | ||
34 | |||
35 | -- | wrapper for int gsl_sf_psi_int_e(int n,gsl_sf_result* result); | ||
36 | -- | ||
37 | -- <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 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 | |||
42 | -- | wrapper for double gsl_sf_psi_int(int n); | ||
43 | -- | ||
44 | -- <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 = gsl_sf_psi_int | ||
47 | foreign import ccall "psi.h gsl_sf_psi_int" gsl_sf_psi_int :: Int -> Double | ||
48 | |||
49 | -- | wrapper for int gsl_sf_psi_e(double x,gsl_sf_result* result); | ||
50 | -- | ||
51 | -- <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 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 | |||
56 | -- | wrapper for double gsl_sf_psi(double x); | ||
57 | -- | ||
58 | -- <http://www.google.com/search?q=gsl_sf_psi&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
59 | psi :: Double -> Double | ||
60 | psi = gsl_sf_psi | ||
61 | foreign import ccall "psi.h gsl_sf_psi" gsl_sf_psi :: Double -> Double | ||
62 | |||
63 | -- | wrapper for int gsl_sf_psi_1piy_e(double y,gsl_sf_result* result); | ||
64 | -- | ||
65 | -- <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 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 | |||
70 | -- | wrapper for double gsl_sf_psi_1piy(double y); | ||
71 | -- | ||
72 | -- <http://www.google.com/search?q=gsl_sf_psi_1piy&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
73 | psi_1piy :: Double -> Double | ||
74 | psi_1piy = gsl_sf_psi_1piy | ||
75 | foreign import ccall "psi.h gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double | ||
76 | |||
77 | -- | wrapper for int gsl_sf_psi_1_int_e(int n,gsl_sf_result* result); | ||
78 | -- | ||
79 | -- <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) | ||
81 | 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) | ||
83 | |||
84 | -- | wrapper for double gsl_sf_psi_1_int(int n); | ||
85 | -- | ||
86 | -- <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 | ||
88 | 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 | ||
90 | |||
91 | -- | wrapper for int gsl_sf_psi_1_e(double x,gsl_sf_result* result); | ||
92 | -- | ||
93 | -- <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) | ||
95 | 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) | ||
97 | |||
98 | -- | wrapper for double gsl_sf_psi_1(double x); | ||
99 | -- | ||
100 | -- <http://www.google.com/search?q=gsl_sf_psi_1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
101 | psi_1 :: Double -> Double | ||
102 | psi_1 = gsl_sf_psi_1 | ||
103 | foreign import ccall "psi.h gsl_sf_psi_1" gsl_sf_psi_1 :: Double -> Double | ||
104 | |||
105 | -- | wrapper for int gsl_sf_psi_n_e(int n,double x,gsl_sf_result* result); | ||
106 | -- | ||
107 | -- <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) | ||
109 | 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) | ||
111 | |||
112 | -- | wrapper for double gsl_sf_psi_n(int n,double x); | ||
113 | -- | ||
114 | -- <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 | ||
116 | psi_n = gsl_sf_psi_n | ||
117 | foreign import ccall "psi.h gsl_sf_psi_n" gsl_sf_psi_n :: Int -> Double -> Double | ||