summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Dilog.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Numeric/GSL/Special/Dilog.hs')
-rw-r--r--lib/Numeric/GSL/Special/Dilog.hs58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Dilog.hs b/lib/Numeric/GSL/Special/Dilog.hs
new file mode 100644
index 0000000..e7693da
--- /dev/null
+++ b/lib/Numeric/GSL/Special/Dilog.hs
@@ -0,0 +1,58 @@
1------------------------------------------------------------
2{- |
3Module : Numeric.GSL.Special.Dilog
4Copyright : (c) Alberto Ruiz 2006
5License : GPL-style
6Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional
8Portability : uses ffi
9
10Wrappers 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------------------------------------------------------------
16
17module Numeric.GSL.Special.Dilog(
18 dilog_e
19, dilog
20) where
21
22import Foreign(Ptr)
23import Numeric.GSL.Special.Internal
24
25-- | wrapper for int gsl_sf_dilog_e(double x,gsl_sf_result* result);
26--
27-- <http://www.google.com/search?q=gsl_sf_dilog_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
28dilog_e :: Double -> (Double,Double)
29dilog_e x = createSFR "dilog_e" $ gsl_sf_dilog_e x
30foreign import ccall "dilog.h gsl_sf_dilog_e" gsl_sf_dilog_e :: Double -> Ptr Double -> IO(Int)
31
32-- | wrapper for double gsl_sf_dilog(double x);
33--
34-- <http://www.google.com/search?q=gsl_sf_dilog&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
35dilog :: Double -> Double
36dilog = gsl_sf_dilog
37foreign import ccall "dilog.h gsl_sf_dilog" gsl_sf_dilog :: Double -> Double
38
39-- | wrapper for int gsl_sf_complex_dilog_xy_e(double x,double y,gsl_sf_result* result_re,gsl_sf_result* result_im);
40--
41-- <http://www.google.com/search?q=gsl_sf_complex_dilog_xy_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
42complex_dilog_xy_e :: Double -> Double -> Ptr Double -> (Double,Double)
43complex_dilog_xy_e x y result_re = createSFR "complex_dilog_xy_e" $ gsl_sf_complex_dilog_xy_e x y result_re
44foreign import ccall "dilog.h gsl_sf_complex_dilog_xy_e" gsl_sf_complex_dilog_xy_e :: Double -> Double -> Ptr Double -> Ptr Double -> IO(Int)
45
46-- | wrapper for int gsl_sf_complex_dilog_e(double r,double theta,gsl_sf_result* result_re,gsl_sf_result* result_im);
47--
48-- <http://www.google.com/search?q=gsl_sf_complex_dilog_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
49complex_dilog_e :: Double -> Double -> Ptr Double -> (Double,Double)
50complex_dilog_e r theta result_re = createSFR "complex_dilog_e" $ gsl_sf_complex_dilog_e r theta result_re
51foreign import ccall "dilog.h gsl_sf_complex_dilog_e" gsl_sf_complex_dilog_e :: Double -> Double -> Ptr Double -> Ptr Double -> IO(Int)
52
53-- | wrapper for int gsl_sf_complex_spence_xy_e(double x,double y,gsl_sf_result* real_sp,gsl_sf_result* imag_sp);
54--
55-- <http://www.google.com/search?q=gsl_sf_complex_spence_xy_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
56complex_spence_xy_e :: Double -> Double -> Ptr Double -> (Double,Double)
57complex_spence_xy_e x y real_sp = createSFR "complex_spence_xy_e" $ gsl_sf_complex_spence_xy_e x y real_sp
58foreign import ccall "dilog.h gsl_sf_complex_spence_xy_e" gsl_sf_complex_spence_xy_e :: Double -> Double -> Ptr Double -> Ptr Double -> IO(Int)