summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Synchrotron.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GSL/Special/Synchrotron.hs')
-rw-r--r--lib/GSL/Special/Synchrotron.hs43
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{- |
3Module : GSL.Special.Synchrotron
4Copyright : (c) Alberto Ruiz 2006
5License : GPL-style
6Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional
8Portability : uses ffi
9
10
11
12-}
13------------------------------------------------------------
14
15module GSL.Special.Synchrotron(
16 synchrotron_1_e
17, synchrotron_1
18, synchrotron_2_e
19, synchrotron_2
20) where
21
22import Foreign(Ptr)
23import GSL.Special.Internal
24
25-- | wrapper for int gsl_sf_synchrotron_1_e(double x,gsl_sf_result* result);
26synchrotron_1_e :: Double -> (Double,Double)
27synchrotron_1_e x = createSFR "synchrotron_1_e" $ gsl_sf_synchrotron_1_e x
28foreign 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);
31synchrotron_1 :: Double -> Double
32synchrotron_1 = gsl_sf_synchrotron_1
33foreign 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);
36synchrotron_2_e :: Double -> (Double,Double)
37synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x
38foreign 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);
41synchrotron_2 :: Double -> Double
42synchrotron_2 = gsl_sf_synchrotron_2
43foreign import ccall "synchrotron.h gsl_sf_synchrotron_2" gsl_sf_synchrotron_2 :: Double -> Double