summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Elementary.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GSL/Special/Elementary.hs')
-rw-r--r--lib/GSL/Special/Elementary.hs37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/GSL/Special/Elementary.hs b/lib/GSL/Special/Elementary.hs
new file mode 100644
index 0000000..5da89ca
--- /dev/null
+++ b/lib/GSL/Special/Elementary.hs
@@ -0,0 +1,37 @@
1------------------------------------------------------------
2{- |
3Module : GSL.Special.Elementary
4Copyright : (c) Alberto Ruiz 2006
5License : GPL-style
6Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional
8Portability : uses ffi
9
10
11
12-}
13------------------------------------------------------------
14
15module GSL.Special.Elementary(
16 multiply_e
17, multiply
18, multiply_err_e
19) where
20
21import Foreign(Ptr)
22import GSL.Special.Internal
23
24-- | wrapper for int gsl_sf_multiply_e(double x,double y,gsl_sf_result* result);
25multiply_e :: Double -> Double -> (Double,Double)
26multiply_e x y = createSFR "multiply_e" $ gsl_sf_multiply_e x y
27foreign import ccall "elementary.h gsl_sf_multiply_e" gsl_sf_multiply_e :: Double -> Double -> Ptr Double -> IO(Int)
28
29-- | wrapper for double gsl_sf_multiply(double x,double y);
30multiply :: Double -> Double -> Double
31multiply = gsl_sf_multiply
32foreign import ccall "elementary.h gsl_sf_multiply" gsl_sf_multiply :: Double -> Double -> Double
33
34-- | wrapper for int gsl_sf_multiply_err_e(double x,double dx,double y,double dy,gsl_sf_result* result);
35multiply_err_e :: Double -> Double -> Double -> Double -> (Double,Double)
36multiply_err_e x dx y dy = createSFR "multiply_err_e" $ gsl_sf_multiply_err_e x dx y dy
37foreign import ccall "elementary.h gsl_sf_multiply_err_e" gsl_sf_multiply_err_e :: Double -> Double -> Double -> Double -> Ptr Double -> IO(Int)