diff options
Diffstat (limited to 'packages/special/lib/Numeric/GSL/Special/Synchrotron.hs')
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Synchrotron.hs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs new file mode 100644 index 0000000..59d6c76 --- /dev/null +++ b/packages/special/lib/Numeric/GSL/Special/Synchrotron.hs | |||
@@ -0,0 +1,40 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Synchrotron | ||
4 | -- Copyright : (c) Alberto Ruiz 2006 | ||
5 | -- License : GPL | ||
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | -- Stability : provisional | ||
8 | -- Portability : uses ffi | ||
9 | -- | ||
10 | -- Wrappers for selected functions described at: | ||
11 | -- | ||
12 | -- <http://www.google.com/search?q=gsl_sf_synchrotron.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module Numeric.GSL.Special.Synchrotron( | ||
16 | synchrotron_1_e | ||
17 | , synchrotron_1 | ||
18 | , synchrotron_2_e | ||
19 | , synchrotron_2 | ||
20 | ) where | ||
21 | |||
22 | import Foreign(Ptr) | ||
23 | import Foreign.C.Types(CInt) | ||
24 | import Numeric.GSL.Special.Internal | ||
25 | |||
26 | synchrotron_1_e :: Double -> (Double,Double) | ||
27 | synchrotron_1_e x = createSFR "synchrotron_1_e" $ gsl_sf_synchrotron_1_e x | ||
28 | foreign import ccall SAFE_CHEAP "gsl_sf_synchrotron_1_e" gsl_sf_synchrotron_1_e :: Double -> Ptr () -> IO CInt | ||
29 | |||
30 | synchrotron_1 :: Double -> Double | ||
31 | synchrotron_1 = gsl_sf_synchrotron_1 | ||
32 | foreign import ccall SAFE_CHEAP "gsl_sf_synchrotron_1" gsl_sf_synchrotron_1 :: Double -> Double | ||
33 | |||
34 | synchrotron_2_e :: Double -> (Double,Double) | ||
35 | synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x | ||
36 | foreign import ccall SAFE_CHEAP "gsl_sf_synchrotron_2_e" gsl_sf_synchrotron_2_e :: Double -> Ptr () -> IO CInt | ||
37 | |||
38 | synchrotron_2 :: Double -> Double | ||
39 | synchrotron_2 = gsl_sf_synchrotron_2 | ||
40 | foreign import ccall SAFE_CHEAP "gsl_sf_synchrotron_2" gsl_sf_synchrotron_2 :: Double -> Double | ||