From 54bcc1fc1e0f9676cb10f627f412eeeea34b5d2c Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 24 Feb 2010 13:23:42 +0000 Subject: created package hmatrix-special --- .../special/lib/Numeric/GSL/Special/Clausen.hs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/special/lib/Numeric/GSL/Special/Clausen.hs (limited to 'packages/special/lib/Numeric/GSL/Special/Clausen.hs') diff --git a/packages/special/lib/Numeric/GSL/Special/Clausen.hs b/packages/special/lib/Numeric/GSL/Special/Clausen.hs new file mode 100644 index 0000000..70f05a7 --- /dev/null +++ b/packages/special/lib/Numeric/GSL/Special/Clausen.hs @@ -0,0 +1,30 @@ +------------------------------------------------------------ +-- | +-- Module : Numeric.GSL.Special.Clausen +-- 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.Clausen( + clausen_e +, clausen +) where + +import Foreign(Ptr) +import Foreign.C.Types(CInt) +import Numeric.GSL.Special.Internal + +clausen_e :: Double -> (Double,Double) +clausen_e x = createSFR "clausen_e" $ gsl_sf_clausen_e x +foreign import ccall SAFE_CHEAP "gsl_sf_clausen_e" gsl_sf_clausen_e :: Double -> Ptr () -> IO CInt + +clausen :: Double -> Double +clausen = gsl_sf_clausen +foreign import ccall SAFE_CHEAP "gsl_sf_clausen" gsl_sf_clausen :: Double -> Double -- cgit v1.2.3