summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Psi.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Special/Psi.hs')
-rw-r--r--lib/Numeric/GSL/Special/Psi.hs76
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-- |
3Module : Numeric.GSL.Special.Psi 3-- Module : Numeric.GSL.Special.Psi
4Copyright : (c) Alberto Ruiz 2006 4-- Copyright : (c) Alberto Ruiz 2006
5License : GPL-style 5-- License : GPL
6Maintainer : Alberto Ruiz (aruiz at um dot es) 6-- Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional 7-- Stability : provisional
8Portability : uses ffi 8-- Portability : uses ffi
9 9--
10Wrappers 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
17module Numeric.GSL.Special.Psi( 15module Numeric.GSL.Special.Psi(
@@ -32,94 +30,42 @@ module Numeric.GSL.Special.Psi(
32import Foreign(Ptr) 30import Foreign(Ptr)
33import Foreign.C.Types(CInt) 31import Foreign.C.Types(CInt)
34import Numeric.GSL.Special.Internal 32import 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>
39psi_int_e :: CInt -> (Double,Double) 33psi_int_e :: CInt -> (Double,Double)
40psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n 34psi_int_e n = createSFR "psi_int_e" $ gsl_sf_psi_int_e n
41foreign import ccall "gsl_sf_psi_int_e" gsl_sf_psi_int_e :: CInt -> Ptr () -> IO CInt 35foreign 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>
46psi_int :: CInt -> Double 36psi_int :: CInt -> Double
47psi_int = gsl_sf_psi_int 37psi_int = gsl_sf_psi_int
48foreign import ccall "gsl_sf_psi_int" gsl_sf_psi_int :: CInt -> Double 38foreign 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>
53psi_e :: Double -> (Double,Double) 39psi_e :: Double -> (Double,Double)
54psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x 40psi_e x = createSFR "psi_e" $ gsl_sf_psi_e x
55foreign import ccall "gsl_sf_psi_e" gsl_sf_psi_e :: Double -> Ptr () -> IO CInt 41foreign 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>
60psi :: Double -> Double 42psi :: Double -> Double
61psi = gsl_sf_psi 43psi = gsl_sf_psi
62foreign import ccall "gsl_sf_psi" gsl_sf_psi :: Double -> Double 44foreign 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>
67psi_1piy_e :: Double -> (Double,Double) 45psi_1piy_e :: Double -> (Double,Double)
68psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y 46psi_1piy_e y = createSFR "psi_1piy_e" $ gsl_sf_psi_1piy_e y
69foreign import ccall "gsl_sf_psi_1piy_e" gsl_sf_psi_1piy_e :: Double -> Ptr () -> IO CInt 47foreign 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>
74psi_1piy :: Double -> Double 48psi_1piy :: Double -> Double
75psi_1piy = gsl_sf_psi_1piy 49psi_1piy = gsl_sf_psi_1piy
76foreign import ccall "gsl_sf_psi_1piy" gsl_sf_psi_1piy :: Double -> Double 50foreign 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>
81complex_psi_e :: Double -> Double -> Ptr () -> (Double,Double) 51complex_psi_e :: Double -> Double -> Ptr () -> (Double,Double)
82complex_psi_e x y result_re = createSFR "complex_psi_e" $ gsl_sf_complex_psi_e x y result_re 52complex_psi_e x y result_re = createSFR "complex_psi_e" $ gsl_sf_complex_psi_e x y result_re
83foreign import ccall "gsl_sf_complex_psi_e" gsl_sf_complex_psi_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 53foreign 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>
88psi_1_int_e :: CInt -> (Double,Double) 54psi_1_int_e :: CInt -> (Double,Double)
89psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n 55psi_1_int_e n = createSFR "psi_1_int_e" $ gsl_sf_psi_1_int_e n
90foreign import ccall "gsl_sf_psi_1_int_e" gsl_sf_psi_1_int_e :: CInt -> Ptr () -> IO CInt 56foreign 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>
95psi_1_int :: CInt -> Double 57psi_1_int :: CInt -> Double
96psi_1_int = gsl_sf_psi_1_int 58psi_1_int = gsl_sf_psi_1_int
97foreign import ccall "gsl_sf_psi_1_int" gsl_sf_psi_1_int :: CInt -> Double 59foreign 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>
102psi_1_e :: Double -> (Double,Double) 60psi_1_e :: Double -> (Double,Double)
103psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x 61psi_1_e x = createSFR "psi_1_e" $ gsl_sf_psi_1_e x
104foreign import ccall "gsl_sf_psi_1_e" gsl_sf_psi_1_e :: Double -> Ptr () -> IO CInt 62foreign 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>
109psi_1 :: Double -> Double 63psi_1 :: Double -> Double
110psi_1 = gsl_sf_psi_1 64psi_1 = gsl_sf_psi_1
111foreign import ccall "gsl_sf_psi_1" gsl_sf_psi_1 :: Double -> Double 65foreign 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>
116psi_n_e :: CInt -> Double -> (Double,Double) 66psi_n_e :: CInt -> Double -> (Double,Double)
117psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x 67psi_n_e n x = createSFR "psi_n_e" $ gsl_sf_psi_n_e n x
118foreign import ccall "gsl_sf_psi_n_e" gsl_sf_psi_n_e :: CInt -> Double -> Ptr () -> IO CInt 68foreign 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>
123psi_n :: CInt -> Double -> Double 69psi_n :: CInt -> Double -> Double
124psi_n = gsl_sf_psi_n 70psi_n = gsl_sf_psi_n
125foreign import ccall "gsl_sf_psi_n" gsl_sf_psi_n :: CInt -> Double -> Double 71foreign import ccall "gsl_sf_psi_n" gsl_sf_psi_n :: CInt -> Double -> Double