diff options
Diffstat (limited to 'packages/special/lib/Numeric/GSL/Special/Dilog.hs')
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Dilog.hs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Dilog.hs b/packages/special/lib/Numeric/GSL/Special/Dilog.hs new file mode 100644 index 0000000..48b548b --- /dev/null +++ b/packages/special/lib/Numeric/GSL/Special/Dilog.hs | |||
@@ -0,0 +1,42 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Dilog | ||
4 | -- Copyright : (c) Alberto Ruiz 2006 | ||
5 | -- License : GPL | ||
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | -- Stability : provisional | ||
8 | -- Portability : uses ffi | ||
9 | -- | ||
10 | -- Wrappers for selected functions described at: | ||
11 | -- | ||
12 | -- <http://www.google.com/search?q=gsl_sf_dilog.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module Numeric.GSL.Special.Dilog( | ||
16 | dilog_e | ||
17 | , dilog | ||
18 | ) where | ||
19 | |||
20 | import Foreign(Ptr) | ||
21 | import Foreign.C.Types(CInt) | ||
22 | import Numeric.GSL.Special.Internal | ||
23 | |||
24 | dilog_e :: Double -> (Double,Double) | ||
25 | dilog_e x = createSFR "dilog_e" $ gsl_sf_dilog_e x | ||
26 | foreign import ccall SAFE_CHEAP "gsl_sf_dilog_e" gsl_sf_dilog_e :: Double -> Ptr () -> IO CInt | ||
27 | |||
28 | dilog :: Double -> Double | ||
29 | dilog = gsl_sf_dilog | ||
30 | foreign import ccall SAFE_CHEAP "gsl_sf_dilog" gsl_sf_dilog :: Double -> Double | ||
31 | |||
32 | complex_dilog_xy_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
33 | complex_dilog_xy_e x y result_re = createSFR "complex_dilog_xy_e" $ gsl_sf_complex_dilog_xy_e x y result_re | ||
34 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_dilog_xy_e" gsl_sf_complex_dilog_xy_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
35 | |||
36 | complex_dilog_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
37 | complex_dilog_e r theta result_re = createSFR "complex_dilog_e" $ gsl_sf_complex_dilog_e r theta result_re | ||
38 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_dilog_e" gsl_sf_complex_dilog_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
39 | |||
40 | complex_spence_xy_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
41 | complex_spence_xy_e x y real_sp = createSFR "complex_spence_xy_e" $ gsl_sf_complex_spence_xy_e x y real_sp | ||
42 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_spence_xy_e" gsl_sf_complex_spence_xy_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||