diff options
Diffstat (limited to 'packages/special/lib/Numeric/GSL/Special/Coulomb.hs')
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Coulomb.hs | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Coulomb.hs b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs new file mode 100644 index 0000000..7253972 --- /dev/null +++ b/packages/special/lib/Numeric/GSL/Special/Coulomb.hs | |||
@@ -0,0 +1,69 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Coulomb | ||
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_coulomb.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module Numeric.GSL.Special.Coulomb( | ||
16 | hydrogenicR_1_e | ||
17 | , hydrogenicR_1 | ||
18 | , hydrogenicR_e | ||
19 | , hydrogenicR | ||
20 | , coulomb_CL_e | ||
21 | ) where | ||
22 | |||
23 | import Foreign(Ptr) | ||
24 | import Foreign.C.Types(CInt) | ||
25 | import Numeric.GSL.Special.Internal | ||
26 | |||
27 | hydrogenicR_1_e :: Double -> Double -> (Double,Double) | ||
28 | hydrogenicR_1_e zZ r = createSFR "hydrogenicR_1_e" $ gsl_sf_hydrogenicR_1_e zZ r | ||
29 | foreign import ccall SAFE_CHEAP "gsl_sf_hydrogenicR_1_e" gsl_sf_hydrogenicR_1_e :: Double -> Double -> Ptr () -> IO CInt | ||
30 | |||
31 | hydrogenicR_1 :: Double -> Double -> Double | ||
32 | hydrogenicR_1 = gsl_sf_hydrogenicR_1 | ||
33 | foreign import ccall SAFE_CHEAP "gsl_sf_hydrogenicR_1" gsl_sf_hydrogenicR_1 :: Double -> Double -> Double | ||
34 | |||
35 | hydrogenicR_e :: CInt -> CInt -> Double -> Double -> (Double,Double) | ||
36 | hydrogenicR_e n l zZ r = createSFR "hydrogenicR_e" $ gsl_sf_hydrogenicR_e n l zZ r | ||
37 | foreign import ccall SAFE_CHEAP "gsl_sf_hydrogenicR_e" gsl_sf_hydrogenicR_e :: CInt -> CInt -> Double -> Double -> Ptr () -> IO CInt | ||
38 | |||
39 | hydrogenicR :: CInt -> CInt -> Double -> Double -> Double | ||
40 | hydrogenicR = gsl_sf_hydrogenicR | ||
41 | foreign import ccall SAFE_CHEAP "gsl_sf_hydrogenicR" gsl_sf_hydrogenicR :: CInt -> CInt -> Double -> Double -> Double | ||
42 | |||
43 | coulomb_wave_FG_e :: Double -> Double -> Double -> CInt -> Ptr () -> Ptr () -> Ptr () -> Ptr () -> Ptr Double -> Ptr Double -> CInt | ||
44 | coulomb_wave_FG_e = gsl_sf_coulomb_wave_FG_e | ||
45 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_wave_FG_e" gsl_sf_coulomb_wave_FG_e :: Double -> Double -> Double -> CInt -> Ptr () -> Ptr () -> Ptr () -> Ptr () -> Ptr Double -> Ptr Double -> CInt | ||
46 | |||
47 | coulomb_wave_F_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> CInt | ||
48 | coulomb_wave_F_array = gsl_sf_coulomb_wave_F_array | ||
49 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_wave_F_array" gsl_sf_coulomb_wave_F_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> CInt | ||
50 | |||
51 | coulomb_wave_FG_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> CInt | ||
52 | coulomb_wave_FG_array = gsl_sf_coulomb_wave_FG_array | ||
53 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_wave_FG_array" gsl_sf_coulomb_wave_FG_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> CInt | ||
54 | |||
55 | coulomb_wave_FGp_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> CInt | ||
56 | coulomb_wave_FGp_array = gsl_sf_coulomb_wave_FGp_array | ||
57 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_wave_FGp_array" gsl_sf_coulomb_wave_FGp_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> Ptr Double -> CInt | ||
58 | |||
59 | coulomb_wave_sphF_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> CInt | ||
60 | coulomb_wave_sphF_array = gsl_sf_coulomb_wave_sphF_array | ||
61 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_wave_sphF_array" gsl_sf_coulomb_wave_sphF_array :: Double -> CInt -> Double -> Double -> Ptr Double -> Ptr Double -> CInt | ||
62 | |||
63 | coulomb_CL_e :: Double -> Double -> (Double,Double) | ||
64 | coulomb_CL_e lL eta = createSFR "coulomb_CL_e" $ gsl_sf_coulomb_CL_e lL eta | ||
65 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_CL_e" gsl_sf_coulomb_CL_e :: Double -> Double -> Ptr () -> IO CInt | ||
66 | |||
67 | coulomb_CL_array :: Double -> CInt -> Double -> Ptr Double -> CInt | ||
68 | coulomb_CL_array = gsl_sf_coulomb_CL_array | ||
69 | foreign import ccall SAFE_CHEAP "gsl_sf_coulomb_CL_array" gsl_sf_coulomb_CL_array :: Double -> CInt -> Double -> Ptr Double -> CInt | ||