diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-01-21 21:40:07 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-01-21 21:40:07 +0000 |
commit | 17749900a9146ddf6cd8ebf59dc35e56d6bff413 (patch) | |
tree | d352b7b155ebf650cd41a134aeb39450e54163b2 /lib/Numeric/GSL/Special/Lambert.hs | |
parent | 4fb0006a2227d3d5293a53b88ef67ce6ebd73440 (diff) |
IO CInt results
Diffstat (limited to 'lib/Numeric/GSL/Special/Lambert.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Lambert.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Special/Lambert.hs b/lib/Numeric/GSL/Special/Lambert.hs index ad5579f..18071fa 100644 --- a/lib/Numeric/GSL/Special/Lambert.hs +++ b/lib/Numeric/GSL/Special/Lambert.hs | |||
@@ -22,6 +22,7 @@ module Numeric.GSL.Special.Lambert( | |||
22 | ) where | 22 | ) where |
23 | 23 | ||
24 | import Foreign(Ptr) | 24 | import Foreign(Ptr) |
25 | import Foreign.C.Types(CInt) | ||
25 | import Numeric.GSL.Special.Internal | 26 | import Numeric.GSL.Special.Internal |
26 | 27 | ||
27 | -- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result); | 28 | -- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result); |
@@ -29,7 +30,7 @@ import Numeric.GSL.Special.Internal | |||
29 | -- <http://www.google.com/search?q=gsl_sf_lambert_W0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 30 | -- <http://www.google.com/search?q=gsl_sf_lambert_W0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
30 | lambert_W0_e :: Double -> (Double,Double) | 31 | lambert_W0_e :: Double -> (Double,Double) |
31 | lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x | 32 | lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x |
32 | foreign import ccall "lambert.h gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr Double -> IO(Int) | 33 | foreign import ccall "lambert.h gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr () -> IO CInt |
33 | 34 | ||
34 | -- | wrapper for double gsl_sf_lambert_W0(double x); | 35 | -- | wrapper for double gsl_sf_lambert_W0(double x); |
35 | -- | 36 | -- |
@@ -43,7 +44,7 @@ foreign import ccall "lambert.h gsl_sf_lambert_W0" gsl_sf_lambert_W0 :: Double - | |||
43 | -- <http://www.google.com/search?q=gsl_sf_lambert_Wm1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 44 | -- <http://www.google.com/search?q=gsl_sf_lambert_Wm1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
44 | lambert_Wm1_e :: Double -> (Double,Double) | 45 | lambert_Wm1_e :: Double -> (Double,Double) |
45 | lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x | 46 | lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x |
46 | foreign import ccall "lambert.h gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr Double -> IO(Int) | 47 | foreign import ccall "lambert.h gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr () -> IO CInt |
47 | 48 | ||
48 | -- | wrapper for double gsl_sf_lambert_Wm1(double x); | 49 | -- | wrapper for double gsl_sf_lambert_Wm1(double x); |
49 | -- | 50 | -- |