summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Synchrotron.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-10-01 15:04:16 +0000
committerAlberto Ruiz <aruiz@um.es>2007-10-01 15:04:16 +0000
commitc99b8fd6e3f8a2fb365ec12baf838f864b118ece (patch)
tree11b5b8515861fe88d547253ae10c2182d5fadaf2 /lib/Numeric/GSL/Special/Synchrotron.hs
parent768f08d4134a066d773d56a9c03ae688e3850352 (diff)
LinearAlgebra and GSL moved to Numeric
Diffstat (limited to 'lib/Numeric/GSL/Special/Synchrotron.hs')
-rw-r--r--lib/Numeric/GSL/Special/Synchrotron.hs53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Synchrotron.hs b/lib/Numeric/GSL/Special/Synchrotron.hs
new file mode 100644
index 0000000..14881fe
--- /dev/null
+++ b/lib/Numeric/GSL/Special/Synchrotron.hs
@@ -0,0 +1,53 @@
1------------------------------------------------------------
2{- |
3Module : Numeric.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
10Wrappers 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------------------------------------------------------------
16
17module Numeric.GSL.Special.Synchrotron(
18 synchrotron_1_e
19, synchrotron_1
20, synchrotron_2_e
21, synchrotron_2
22) where
23
24import Foreign(Ptr)
25import Numeric.GSL.Special.Internal
26
27-- | wrapper for int gsl_sf_synchrotron_1_e(double x,gsl_sf_result* result);
28--
29-- <http://www.google.com/search?q=gsl_sf_synchrotron_1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
30synchrotron_1_e :: Double -> (Double,Double)
31synchrotron_1_e x = createSFR "synchrotron_1_e" $ gsl_sf_synchrotron_1_e x
32foreign import ccall "synchrotron.h gsl_sf_synchrotron_1_e" gsl_sf_synchrotron_1_e :: Double -> Ptr Double -> IO(Int)
33
34-- | wrapper for double gsl_sf_synchrotron_1(double x);
35--
36-- <http://www.google.com/search?q=gsl_sf_synchrotron_1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
37synchrotron_1 :: Double -> Double
38synchrotron_1 = gsl_sf_synchrotron_1
39foreign import ccall "synchrotron.h gsl_sf_synchrotron_1" gsl_sf_synchrotron_1 :: Double -> Double
40
41-- | wrapper for int gsl_sf_synchrotron_2_e(double x,gsl_sf_result* result);
42--
43-- <http://www.google.com/search?q=gsl_sf_synchrotron_2_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
44synchrotron_2_e :: Double -> (Double,Double)
45synchrotron_2_e x = createSFR "synchrotron_2_e" $ gsl_sf_synchrotron_2_e x
46foreign import ccall "synchrotron.h gsl_sf_synchrotron_2_e" gsl_sf_synchrotron_2_e :: Double -> Ptr Double -> IO(Int)
47
48-- | wrapper for double gsl_sf_synchrotron_2(double x);
49--
50-- <http://www.google.com/search?q=gsl_sf_synchrotron_2&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
51synchrotron_2 :: Double -> Double
52synchrotron_2 = gsl_sf_synchrotron_2
53foreign import ccall "synchrotron.h gsl_sf_synchrotron_2" gsl_sf_synchrotron_2 :: Double -> Double