summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Log.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
committerAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
commite58f1e0e94407983fa18cd535cf76427019f1519 (patch)
tree4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/Log.hs
parent45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff)
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Log.hs')
-rw-r--r--lib/Numeric/GSL/Special/Log.hs60
1 files changed, 11 insertions, 49 deletions
diff --git a/lib/Numeric/GSL/Special/Log.hs b/lib/Numeric/GSL/Special/Log.hs
index 370c5bd..665b74b 100644
--- a/lib/Numeric/GSL/Special/Log.hs
+++ b/lib/Numeric/GSL/Special/Log.hs
@@ -1,17 +1,15 @@
1------------------------------------------------------------ 1------------------------------------------------------------
2{- | 2-- |
3Module : Numeric.GSL.Special.Log 3-- Module : Numeric.GSL.Special.Log
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_log.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> 12-- <http://www.google.com/search?q=gsl_sf_log.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
13
14-}
15------------------------------------------------------------ 13------------------------------------------------------------
16 14
17module Numeric.GSL.Special.Log( 15module Numeric.GSL.Special.Log(
@@ -28,66 +26,30 @@ module Numeric.GSL.Special.Log(
28import Foreign(Ptr) 26import Foreign(Ptr)
29import Foreign.C.Types(CInt) 27import Foreign.C.Types(CInt)
30import Numeric.GSL.Special.Internal 28import Numeric.GSL.Special.Internal
31
32-- | wrapper for int gsl_sf_log_e(double x,gsl_sf_result* result);
33--
34-- <http://www.google.com/search?q=gsl_sf_log_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
35log_e :: Double -> (Double,Double) 29log_e :: Double -> (Double,Double)
36log_e x = createSFR "log_e" $ gsl_sf_log_e x 30log_e x = createSFR "log_e" $ gsl_sf_log_e x
37foreign import ccall "gsl_sf_log_e" gsl_sf_log_e :: Double -> Ptr () -> IO CInt 31foreign import ccall "gsl_sf_log_e" gsl_sf_log_e :: Double -> Ptr () -> IO CInt
38
39-- | wrapper for double gsl_sf_log(double x);
40--
41-- <http://www.google.com/search?q=gsl_sf_log&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
42log :: Double -> Double 32log :: Double -> Double
43log = gsl_sf_log 33log = gsl_sf_log
44foreign import ccall "gsl_sf_log" gsl_sf_log :: Double -> Double 34foreign import ccall "gsl_sf_log" gsl_sf_log :: Double -> Double
45
46-- | wrapper for int gsl_sf_log_abs_e(double x,gsl_sf_result* result);
47--
48-- <http://www.google.com/search?q=gsl_sf_log_abs_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
49log_abs_e :: Double -> (Double,Double) 35log_abs_e :: Double -> (Double,Double)
50log_abs_e x = createSFR "log_abs_e" $ gsl_sf_log_abs_e x 36log_abs_e x = createSFR "log_abs_e" $ gsl_sf_log_abs_e x
51foreign import ccall "gsl_sf_log_abs_e" gsl_sf_log_abs_e :: Double -> Ptr () -> IO CInt 37foreign import ccall "gsl_sf_log_abs_e" gsl_sf_log_abs_e :: Double -> Ptr () -> IO CInt
52
53-- | wrapper for double gsl_sf_log_abs(double x);
54--
55-- <http://www.google.com/search?q=gsl_sf_log_abs&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
56log_abs :: Double -> Double 38log_abs :: Double -> Double
57log_abs = gsl_sf_log_abs 39log_abs = gsl_sf_log_abs
58foreign import ccall "gsl_sf_log_abs" gsl_sf_log_abs :: Double -> Double 40foreign import ccall "gsl_sf_log_abs" gsl_sf_log_abs :: Double -> Double
59
60-- | wrapper for int gsl_sf_complex_log_e(double zr,double zi,gsl_sf_result* lnr,gsl_sf_result* theta);
61--
62-- <http://www.google.com/search?q=gsl_sf_complex_log_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
63complex_log_e :: Double -> Double -> Ptr () -> (Double,Double) 41complex_log_e :: Double -> Double -> Ptr () -> (Double,Double)
64complex_log_e zr zi lnr = createSFR "complex_log_e" $ gsl_sf_complex_log_e zr zi lnr 42complex_log_e zr zi lnr = createSFR "complex_log_e" $ gsl_sf_complex_log_e zr zi lnr
65foreign import ccall "gsl_sf_complex_log_e" gsl_sf_complex_log_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 43foreign import ccall "gsl_sf_complex_log_e" gsl_sf_complex_log_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
66
67-- | wrapper for int gsl_sf_log_1plusx_e(double x,gsl_sf_result* result);
68--
69-- <http://www.google.com/search?q=gsl_sf_log_1plusx_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
70log_1plusx_e :: Double -> (Double,Double) 44log_1plusx_e :: Double -> (Double,Double)
71log_1plusx_e x = createSFR "log_1plusx_e" $ gsl_sf_log_1plusx_e x 45log_1plusx_e x = createSFR "log_1plusx_e" $ gsl_sf_log_1plusx_e x
72foreign import ccall "gsl_sf_log_1plusx_e" gsl_sf_log_1plusx_e :: Double -> Ptr () -> IO CInt 46foreign import ccall "gsl_sf_log_1plusx_e" gsl_sf_log_1plusx_e :: Double -> Ptr () -> IO CInt
73
74-- | wrapper for double gsl_sf_log_1plusx(double x);
75--
76-- <http://www.google.com/search?q=gsl_sf_log_1plusx&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
77log_1plusx :: Double -> Double 47log_1plusx :: Double -> Double
78log_1plusx = gsl_sf_log_1plusx 48log_1plusx = gsl_sf_log_1plusx
79foreign import ccall "gsl_sf_log_1plusx" gsl_sf_log_1plusx :: Double -> Double 49foreign import ccall "gsl_sf_log_1plusx" gsl_sf_log_1plusx :: Double -> Double
80
81-- | wrapper for int gsl_sf_log_1plusx_mx_e(double x,gsl_sf_result* result);
82--
83-- <http://www.google.com/search?q=gsl_sf_log_1plusx_mx_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
84log_1plusx_mx_e :: Double -> (Double,Double) 50log_1plusx_mx_e :: Double -> (Double,Double)
85log_1plusx_mx_e x = createSFR "log_1plusx_mx_e" $ gsl_sf_log_1plusx_mx_e x 51log_1plusx_mx_e x = createSFR "log_1plusx_mx_e" $ gsl_sf_log_1plusx_mx_e x
86foreign import ccall "gsl_sf_log_1plusx_mx_e" gsl_sf_log_1plusx_mx_e :: Double -> Ptr () -> IO CInt 52foreign import ccall "gsl_sf_log_1plusx_mx_e" gsl_sf_log_1plusx_mx_e :: Double -> Ptr () -> IO CInt
87
88-- | wrapper for double gsl_sf_log_1plusx_mx(double x);
89--
90-- <http://www.google.com/search?q=gsl_sf_log_1plusx_mx&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
91log_1plusx_mx :: Double -> Double 53log_1plusx_mx :: Double -> Double
92log_1plusx_mx = gsl_sf_log_1plusx_mx 54log_1plusx_mx = gsl_sf_log_1plusx_mx
93foreign import ccall "gsl_sf_log_1plusx_mx" gsl_sf_log_1plusx_mx :: Double -> Double 55foreign import ccall "gsl_sf_log_1plusx_mx" gsl_sf_log_1plusx_mx :: Double -> Double