diff options
Diffstat (limited to 'lib/Numeric/GSL/Special/Elementary.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Elementary.hs | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/lib/Numeric/GSL/Special/Elementary.hs b/lib/Numeric/GSL/Special/Elementary.hs index b433a7a..e804c05 100644 --- a/lib/Numeric/GSL/Special/Elementary.hs +++ b/lib/Numeric/GSL/Special/Elementary.hs | |||
@@ -1,17 +1,15 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | {- | | 2 | -- | |
3 | Module : Numeric.GSL.Special.Elementary | 3 | -- Module : Numeric.GSL.Special.Elementary |
4 | Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006 |
5 | License : GPL-style | 5 | -- License : GPL |
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | Stability : provisional | 7 | -- Stability : provisional |
8 | Portability : uses ffi | 8 | -- Portability : uses ffi |
9 | 9 | -- | |
10 | Wrappers for selected functions described at: | 10 | -- Wrappers for selected functions described at: |
11 | 11 | -- | |
12 | <http://www.google.com/search?q=gsl_sf_elementary.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 12 | -- <http://www.google.com/search?q=gsl_sf_elementary.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | 13 | ------------------------------------------------------------ |
16 | 14 | ||
17 | module Numeric.GSL.Special.Elementary( | 15 | module Numeric.GSL.Special.Elementary( |
@@ -23,24 +21,12 @@ module Numeric.GSL.Special.Elementary( | |||
23 | import Foreign(Ptr) | 21 | import Foreign(Ptr) |
24 | import Foreign.C.Types(CInt) | 22 | import Foreign.C.Types(CInt) |
25 | import Numeric.GSL.Special.Internal | 23 | import Numeric.GSL.Special.Internal |
26 | |||
27 | -- | wrapper for int gsl_sf_multiply_e(double x,double y,gsl_sf_result* result); | ||
28 | -- | ||
29 | -- <http://www.google.com/search?q=gsl_sf_multiply_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
30 | multiply_e :: Double -> Double -> (Double,Double) | 24 | multiply_e :: Double -> Double -> (Double,Double) |
31 | multiply_e x y = createSFR "multiply_e" $ gsl_sf_multiply_e x y | 25 | multiply_e x y = createSFR "multiply_e" $ gsl_sf_multiply_e x y |
32 | foreign import ccall "gsl_sf_multiply_e" gsl_sf_multiply_e :: Double -> Double -> Ptr () -> IO CInt | 26 | foreign import ccall "gsl_sf_multiply_e" gsl_sf_multiply_e :: Double -> Double -> Ptr () -> IO CInt |
33 | |||
34 | -- | wrapper for double gsl_sf_multiply(double x,double y); | ||
35 | -- | ||
36 | -- <http://www.google.com/search?q=gsl_sf_multiply&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
37 | multiply :: Double -> Double -> Double | 27 | multiply :: Double -> Double -> Double |
38 | multiply = gsl_sf_multiply | 28 | multiply = gsl_sf_multiply |
39 | foreign import ccall "gsl_sf_multiply" gsl_sf_multiply :: Double -> Double -> Double | 29 | foreign import ccall "gsl_sf_multiply" gsl_sf_multiply :: Double -> Double -> Double |
40 | |||
41 | -- | wrapper for int gsl_sf_multiply_err_e(double x,double dx,double y,double dy,gsl_sf_result* result); | ||
42 | -- | ||
43 | -- <http://www.google.com/search?q=gsl_sf_multiply_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
44 | multiply_err_e :: Double -> Double -> Double -> Double -> (Double,Double) | 30 | multiply_err_e :: Double -> Double -> Double -> Double -> (Double,Double) |
45 | multiply_err_e x dx y dy = createSFR "multiply_err_e" $ gsl_sf_multiply_err_e x dx y dy | 31 | multiply_err_e x dx y dy = createSFR "multiply_err_e" $ gsl_sf_multiply_err_e x dx y dy |
46 | foreign import ccall "gsl_sf_multiply_err_e" gsl_sf_multiply_err_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt | 32 | foreign import ccall "gsl_sf_multiply_err_e" gsl_sf_multiply_err_e :: Double -> Double -> Double -> Double -> Ptr () -> IO CInt |