From e58f1e0e94407983fa18cd535cf76427019f1519 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 17 Jun 2009 12:27:17 +0000 Subject: added special transport and elljac --- lib/Numeric/GSL/Special/Log.hs | 60 ++++++++---------------------------------- 1 file changed, 11 insertions(+), 49 deletions(-) (limited to 'lib/Numeric/GSL/Special/Log.hs') 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 @@ ------------------------------------------------------------ -{- | -Module : Numeric.GSL.Special.Log -Copyright : (c) Alberto Ruiz 2006 -License : GPL-style -Maintainer : Alberto Ruiz (aruiz at um dot es) -Stability : provisional -Portability : uses ffi - -Wrappers for selected functions described at: - - - --} +-- | +-- Module : Numeric.GSL.Special.Log +-- Copyright : (c) Alberto Ruiz 2006 +-- License : GPL +-- Maintainer : Alberto Ruiz (aruiz at um dot es) +-- Stability : provisional +-- Portability : uses ffi +-- +-- Wrappers for selected functions described at: +-- +-- ------------------------------------------------------------ module Numeric.GSL.Special.Log( @@ -28,66 +26,30 @@ module Numeric.GSL.Special.Log( import Foreign(Ptr) import Foreign.C.Types(CInt) import Numeric.GSL.Special.Internal - --- | wrapper for int gsl_sf_log_e(double x,gsl_sf_result* result); --- --- log_e :: Double -> (Double,Double) log_e x = createSFR "log_e" $ gsl_sf_log_e x foreign import ccall "gsl_sf_log_e" gsl_sf_log_e :: Double -> Ptr () -> IO CInt - --- | wrapper for double gsl_sf_log(double x); --- --- log :: Double -> Double log = gsl_sf_log foreign import ccall "gsl_sf_log" gsl_sf_log :: Double -> Double - --- | wrapper for int gsl_sf_log_abs_e(double x,gsl_sf_result* result); --- --- log_abs_e :: Double -> (Double,Double) log_abs_e x = createSFR "log_abs_e" $ gsl_sf_log_abs_e x foreign import ccall "gsl_sf_log_abs_e" gsl_sf_log_abs_e :: Double -> Ptr () -> IO CInt - --- | wrapper for double gsl_sf_log_abs(double x); --- --- log_abs :: Double -> Double log_abs = gsl_sf_log_abs foreign import ccall "gsl_sf_log_abs" gsl_sf_log_abs :: Double -> Double - --- | wrapper for int gsl_sf_complex_log_e(double zr,double zi,gsl_sf_result* lnr,gsl_sf_result* theta); --- --- complex_log_e :: Double -> Double -> Ptr () -> (Double,Double) complex_log_e zr zi lnr = createSFR "complex_log_e" $ gsl_sf_complex_log_e zr zi lnr foreign import ccall "gsl_sf_complex_log_e" gsl_sf_complex_log_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt - --- | wrapper for int gsl_sf_log_1plusx_e(double x,gsl_sf_result* result); --- --- log_1plusx_e :: Double -> (Double,Double) log_1plusx_e x = createSFR "log_1plusx_e" $ gsl_sf_log_1plusx_e x foreign import ccall "gsl_sf_log_1plusx_e" gsl_sf_log_1plusx_e :: Double -> Ptr () -> IO CInt - --- | wrapper for double gsl_sf_log_1plusx(double x); --- --- log_1plusx :: Double -> Double log_1plusx = gsl_sf_log_1plusx foreign import ccall "gsl_sf_log_1plusx" gsl_sf_log_1plusx :: Double -> Double - --- | wrapper for int gsl_sf_log_1plusx_mx_e(double x,gsl_sf_result* result); --- --- log_1plusx_mx_e :: Double -> (Double,Double) log_1plusx_mx_e x = createSFR "log_1plusx_mx_e" $ gsl_sf_log_1plusx_mx_e x foreign import ccall "gsl_sf_log_1plusx_mx_e" gsl_sf_log_1plusx_mx_e :: Double -> Ptr () -> IO CInt - --- | wrapper for double gsl_sf_log_1plusx_mx(double x); --- --- log_1plusx_mx :: Double -> Double log_1plusx_mx = gsl_sf_log_1plusx_mx foreign import ccall "gsl_sf_log_1plusx_mx" gsl_sf_log_1plusx_mx :: Double -> Double -- cgit v1.2.3