diff options
Diffstat (limited to 'lib/GSL/Special/Elementary.hs')
-rw-r--r-- | lib/GSL/Special/Elementary.hs | 37 |
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 | {- | | ||
3 | Module : GSL.Special.Elementary | ||
4 | Copyright : (c) Alberto Ruiz 2006 | ||
5 | License : GPL-style | ||
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | Stability : provisional | ||
8 | Portability : uses ffi | ||
9 | |||
10 | |||
11 | |||
12 | -} | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module GSL.Special.Elementary( | ||
16 | multiply_e | ||
17 | , multiply | ||
18 | , multiply_err_e | ||
19 | ) where | ||
20 | |||
21 | import Foreign(Ptr) | ||
22 | import GSL.Special.Internal | ||
23 | |||
24 | -- | wrapper for int gsl_sf_multiply_e(double x,double y,gsl_sf_result* result); | ||
25 | multiply_e :: Double -> Double -> (Double,Double) | ||
26 | multiply_e x y = createSFR "multiply_e" $ gsl_sf_multiply_e x y | ||
27 | foreign 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); | ||
30 | multiply :: Double -> Double -> Double | ||
31 | multiply = gsl_sf_multiply | ||
32 | foreign 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); | ||
35 | multiply_err_e :: Double -> Double -> Double -> Double -> (Double,Double) | ||
36 | multiply_err_e x dx y dy = createSFR "multiply_err_e" $ gsl_sf_multiply_err_e x dx y dy | ||
37 | foreign import ccall "elementary.h gsl_sf_multiply_err_e" gsl_sf_multiply_err_e :: Double -> Double -> Double -> Double -> Ptr Double -> IO(Int) | ||