diff options
Diffstat (limited to 'lib/GSL/Special/Psi.hs')
-rw-r--r-- | lib/GSL/Special/Psi.hs | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/lib/GSL/Special/Psi.hs b/lib/GSL/Special/Psi.hs new file mode 100644 index 0000000..59c9495 --- /dev/null +++ b/lib/GSL/Special/Psi.hs | |||
@@ -0,0 +1,91 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : 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 | |||
11 | |||
12 | -} | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module 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 GSL.Special.Internal | ||
32 | |||
33 | -- | wrapper for int gsl_sf_psi_int_e(int n,gsl_sf_result* result); | ||
34 | psi_int_e :: Int -> (Double,Double) | ||
35 | psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n | ||
36 | foreign import ccall "psi.h gsl_sf_psi_int_e" gsl_sf_psi_int_e :: Int -> Ptr Double -> IO(Int) | ||
37 | |||
38 | -- | wrapper for double gsl_sf_psi_int(int n); | ||
39 | psi_int :: Int -> Double | ||
40 | psi_int = gsl_sf_psi_int | ||
41 | foreign import ccall "psi.h gsl_sf_psi_int" gsl_sf_psi_int :: Int -> Double | ||
42 | |||
43 | -- | wrapper for int gsl_sf_psi_e(double x,gsl_sf_result* result); | ||
44 | psi_e :: Double -> (Double,Double) | ||
45 | psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x | ||
46 | foreign import ccall "psi.h gsl_sf_psi_e" gsl_sf_psi_e :: Double -> Ptr Double -> IO(Int) | ||
47 | |||
48 | -- | wrapper for double gsl_sf_psi(double x); | ||
49 | psi :: Double -> Double | ||
50 | psi = gsl_sf_psi | ||
51 | foreign import ccall "psi.h gsl_sf_psi" gsl_sf_psi :: Double -> Double | ||
52 | |||
53 | -- | wrapper for int gsl_sf_psi_1piy_e(double y,gsl_sf_result* result); | ||
54 | psi_1piy_e :: Double -> (Double,Double) | ||
55 | psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y | ||
56 | foreign import ccall "psi.h gsl_sf_psi_1piy_e" gsl_sf_psi_1piy_e :: Double -> Ptr Double -> IO(Int) | ||
57 | |||
58 | -- | wrapper for double gsl_sf_psi_1piy(double y); | ||
59 | psi_1piy :: Double -> Double | ||
60 | psi_1piy = gsl_sf_psi_1piy | ||
61 | foreign import ccall "psi.h gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double | ||
62 | |||
63 | -- | wrapper for int gsl_sf_psi_1_int_e(int n,gsl_sf_result* result); | ||
64 | psi_1_int_e :: Int -> (Double,Double) | ||
65 | psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n | ||
66 | foreign import ccall "psi.h gsl_sf_psi_1_int_e" gsl_sf_psi_1_int_e :: Int -> Ptr Double -> IO(Int) | ||
67 | |||
68 | -- | wrapper for double gsl_sf_psi_1_int(int n); | ||
69 | psi_1_int :: Int -> Double | ||
70 | psi_1_int = gsl_sf_psi_1_int | ||
71 | foreign import ccall "psi.h gsl_sf_psi_1_int" gsl_sf_psi_1_int :: Int -> Double | ||
72 | |||
73 | -- | wrapper for int gsl_sf_psi_1_e(double x,gsl_sf_result* result); | ||
74 | psi_1_e :: Double -> (Double,Double) | ||
75 | psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x | ||
76 | foreign import ccall "psi.h gsl_sf_psi_1_e" gsl_sf_psi_1_e :: Double -> Ptr Double -> IO(Int) | ||
77 | |||
78 | -- | wrapper for double gsl_sf_psi_1(double x); | ||
79 | psi_1 :: Double -> Double | ||
80 | psi_1 = gsl_sf_psi_1 | ||
81 | foreign import ccall "psi.h gsl_sf_psi_1" gsl_sf_psi_1 :: Double -> Double | ||
82 | |||
83 | -- | wrapper for int gsl_sf_psi_n_e(int n,double x,gsl_sf_result* result); | ||
84 | psi_n_e :: Int -> Double -> (Double,Double) | ||
85 | psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x | ||
86 | foreign import ccall "psi.h gsl_sf_psi_n_e" gsl_sf_psi_n_e :: Int -> Double -> Ptr Double -> IO(Int) | ||
87 | |||
88 | -- | wrapper for double gsl_sf_psi_n(int n,double x); | ||
89 | psi_n :: Int -> Double -> Double | ||
90 | psi_n = gsl_sf_psi_n | ||
91 | foreign import ccall "psi.h gsl_sf_psi_n" gsl_sf_psi_n :: Int -> Double -> Double | ||