diff options
Diffstat (limited to 'lib/GSL/Special/Synchrotron.hs')
-rw-r--r-- | lib/GSL/Special/Synchrotron.hs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/GSL/Special/Synchrotron.hs b/lib/GSL/Special/Synchrotron.hs new file mode 100644 index 0000000..da49c34 --- /dev/null +++ b/lib/GSL/Special/Synchrotron.hs | |||
@@ -0,0 +1,43 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : GSL.Special.Synchrotron | ||
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.Synchrotron( | ||
16 | synchrotron_1_e | ||
17 | , synchrotron_1 | ||
18 | , synchrotron_2_e | ||
19 | , synchrotron_2 | ||
20 | ) where | ||
21 | |||
22 | import Foreign(Ptr) | ||
23 | import GSL.Special.Internal | ||
24 | |||
25 | -- | wrapper for int gsl_sf_synchrotron_1_e(double x,gsl_sf_result* result); | ||
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 "synchrotron.h gsl_sf_synchrotron_1_e" gsl_sf_synchrotron_1_e :: Double -> Ptr Double -> IO(Int) | ||
29 | |||
30 | -- | wrapper for double gsl_sf_synchrotron_1(double x); | ||
31 | synchrotron_1 :: Double -> Double | ||
32 | synchrotron_1 = gsl_sf_synchrotron_1 | ||
33 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_1" gsl_sf_synchrotron_1 :: Double -> Double | ||
34 | |||
35 | -- | wrapper for int gsl_sf_synchrotron_2_e(double x,gsl_sf_result* result); | ||
36 | synchrotron_2_e :: Double -> (Double,Double) | ||
37 | synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x | ||
38 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_2_e" gsl_sf_synchrotron_2_e :: Double -> Ptr Double -> IO(Int) | ||
39 | |||
40 | -- | wrapper for double gsl_sf_synchrotron_2(double x); | ||
41 | synchrotron_2 :: Double -> Double | ||
42 | synchrotron_2 = gsl_sf_synchrotron_2 | ||
43 | foreign import ccall "synchrotron.h gsl_sf_synchrotron_2" gsl_sf_synchrotron_2 :: Double -> Double | ||