summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Psi.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GSL/Special/Psi.hs')
-rw-r--r--lib/GSL/Special/Psi.hs91
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{- |
3Module : GSL.Special.Psi
4Copyright : (c) Alberto Ruiz 2006
5License : GPL-style
6Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional
8Portability : uses ffi
9
10
11
12-}
13------------------------------------------------------------
14
15module 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
30import Foreign(Ptr)
31import GSL.Special.Internal
32
33-- | wrapper for int gsl_sf_psi_int_e(int n,gsl_sf_result* result);
34psi_int_e :: Int -> (Double,Double)
35psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n
36foreign 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);
39psi_int :: Int -> Double
40psi_int = gsl_sf_psi_int
41foreign 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);
44psi_e :: Double -> (Double,Double)
45psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x
46foreign 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);
49psi :: Double -> Double
50psi = gsl_sf_psi
51foreign 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);
54psi_1piy_e :: Double -> (Double,Double)
55psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y
56foreign 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);
59psi_1piy :: Double -> Double
60psi_1piy = gsl_sf_psi_1piy
61foreign 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);
64psi_1_int_e :: Int -> (Double,Double)
65psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n
66foreign 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);
69psi_1_int :: Int -> Double
70psi_1_int = gsl_sf_psi_1_int
71foreign 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);
74psi_1_e :: Double -> (Double,Double)
75psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x
76foreign 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);
79psi_1 :: Double -> Double
80psi_1 = gsl_sf_psi_1
81foreign 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);
84psi_n_e :: Int -> Double -> (Double,Double)
85psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x
86foreign 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);
89psi_n :: Int -> Double -> Double
90psi_n = gsl_sf_psi_n
91foreign import ccall "psi.h gsl_sf_psi_n" gsl_sf_psi_n :: Int -> Double -> Double