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/Synchrotron.hs | |
parent | 4fb0006a2227d3d5293a53b88ef67ce6ebd73440 (diff) |
IO CInt results
Diffstat (limited to 'lib/Numeric/GSL/Special/Synchrotron.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Synchrotron.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Special/Synchrotron.hs b/lib/Numeric/GSL/Special/Synchrotron.hs index 14881fe..8adcce8 100644 --- a/lib/Numeric/GSL/Special/Synchrotron.hs +++ b/lib/Numeric/GSL/Special/Synchrotron.hs | |||
@@ -22,6 +22,7 @@ module Numeric.GSL.Special.Synchrotron( | |||
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_synchrotron_1_e(double x,gsl_sf_result* result); | 28 | -- | wrapper for int gsl_sf_synchrotron_1_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_synchrotron_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 30 | -- <http://www.google.com/search?q=gsl_sf_synchrotron_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
30 | synchrotron_1_e :: Double -> (Double,Double) | 31 | synchrotron_1_e :: Double -> (Double,Double) |
31 | synchrotron_1_e x = createSFR "synchrotron_1_e" $ gsl_sf_synchrotron_1_e x | 32 | synchrotron_1_e x = createSFR "synchrotron_1_e" $ gsl_sf_synchrotron_1_e x |
32 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_1_e" gsl_sf_synchrotron_1_e :: Double -> Ptr Double -> IO(Int) | 33 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_1_e" gsl_sf_synchrotron_1_e :: Double -> Ptr () -> IO CInt |
33 | 34 | ||
34 | -- | wrapper for double gsl_sf_synchrotron_1(double x); | 35 | -- | wrapper for double gsl_sf_synchrotron_1(double x); |
35 | -- | 36 | -- |
@@ -43,7 +44,7 @@ foreign import ccall "synchrotron.h gsl_sf_synchrotron_1" gsl_sf_synchrotron_1 : | |||
43 | -- <http://www.google.com/search?q=gsl_sf_synchrotron_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 44 | -- <http://www.google.com/search?q=gsl_sf_synchrotron_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
44 | synchrotron_2_e :: Double -> (Double,Double) | 45 | synchrotron_2_e :: Double -> (Double,Double) |
45 | synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x | 46 | synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x |
46 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_2_e" gsl_sf_synchrotron_2_e :: Double -> Ptr Double -> IO(Int) | 47 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_2_e" gsl_sf_synchrotron_2_e :: Double -> Ptr () -> IO CInt |
47 | 48 | ||
48 | -- | wrapper for double gsl_sf_synchrotron_2(double x); | 49 | -- | wrapper for double gsl_sf_synchrotron_2(double x); |
49 | -- | 50 | -- |