diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
commit | 54bcc1fc1e0f9676cb10f627f412eeeea34b5d2c (patch) | |
tree | 3983a0046ce08a2390c5a495aae60fd419c58986 /lib/Numeric/GSL/Special/Psi.hs | |
parent | aae45de54aca92c5f0f013e46c6d6f65508d76f5 (diff) |
created package hmatrix-special
Diffstat (limited to 'lib/Numeric/GSL/Special/Psi.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Psi.hs | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/lib/Numeric/GSL/Special/Psi.hs b/lib/Numeric/GSL/Special/Psi.hs deleted file mode 100644 index 4655b8c..0000000 --- a/lib/Numeric/GSL/Special/Psi.hs +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Psi | ||
4 | -- Copyright : (c) Alberto Ruiz 2006 | ||
5 | -- License : GPL | ||
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 | module Numeric.GSL.Special.Psi( | ||
16 | psi_int_e | ||
17 | , psi_int | ||
18 | , psi_e | ||
19 | , psi | ||
20 | , psi_1piy_e | ||
21 | , psi_1piy | ||
22 | , psi_1_int_e | ||
23 | , psi_1_int | ||
24 | , psi_1_e | ||
25 | , psi_1 | ||
26 | , psi_n_e | ||
27 | , psi_n | ||
28 | ) where | ||
29 | |||
30 | import Foreign(Ptr) | ||
31 | import Foreign.C.Types(CInt) | ||
32 | import Numeric.GSL.Special.Internal | ||
33 | |||
34 | psi_int_e :: CInt -> (Double,Double) | ||
35 | psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n | ||
36 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_int_e" gsl_sf_psi_int_e :: CInt -> Ptr () -> IO CInt | ||
37 | |||
38 | psi_int :: CInt -> Double | ||
39 | psi_int = gsl_sf_psi_int | ||
40 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_int" gsl_sf_psi_int :: CInt -> Double | ||
41 | |||
42 | psi_e :: Double -> (Double,Double) | ||
43 | psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x | ||
44 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_e" gsl_sf_psi_e :: Double -> Ptr () -> IO CInt | ||
45 | |||
46 | psi :: Double -> Double | ||
47 | psi = gsl_sf_psi | ||
48 | foreign import ccall SAFE_CHEAP "gsl_sf_psi" gsl_sf_psi :: Double -> Double | ||
49 | |||
50 | psi_1piy_e :: Double -> (Double,Double) | ||
51 | psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y | ||
52 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1piy_e" gsl_sf_psi_1piy_e :: Double -> Ptr () -> IO CInt | ||
53 | |||
54 | psi_1piy :: Double -> Double | ||
55 | psi_1piy = gsl_sf_psi_1piy | ||
56 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double | ||
57 | |||
58 | complex_psi_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
59 | complex_psi_e x y result_re = createSFR "complex_psi_e" $ gsl_sf_complex_psi_e x y result_re | ||
60 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_psi_e" gsl_sf_complex_psi_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
61 | |||
62 | psi_1_int_e :: CInt -> (Double,Double) | ||
63 | psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n | ||
64 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1_int_e" gsl_sf_psi_1_int_e :: CInt -> Ptr () -> IO CInt | ||
65 | |||
66 | psi_1_int :: CInt -> Double | ||
67 | psi_1_int = gsl_sf_psi_1_int | ||
68 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1_int" gsl_sf_psi_1_int :: CInt -> Double | ||
69 | |||
70 | psi_1_e :: Double -> (Double,Double) | ||
71 | psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x | ||
72 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1_e" gsl_sf_psi_1_e :: Double -> Ptr () -> IO CInt | ||
73 | |||
74 | psi_1 :: Double -> Double | ||
75 | psi_1 = gsl_sf_psi_1 | ||
76 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_1" gsl_sf_psi_1 :: Double -> Double | ||
77 | |||
78 | psi_n_e :: CInt -> Double -> (Double,Double) | ||
79 | psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x | ||
80 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_n_e" gsl_sf_psi_n_e :: CInt -> Double -> Ptr () -> IO CInt | ||
81 | |||
82 | psi_n :: CInt -> Double -> Double | ||
83 | psi_n = gsl_sf_psi_n | ||
84 | foreign import ccall SAFE_CHEAP "gsl_sf_psi_n" gsl_sf_psi_n :: CInt -> Double -> Double | ||