diff options
author | Alberto Ruiz <aruiz@um.es> | 2009-06-17 12:27:17 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2009-06-17 12:27:17 +0000 |
commit | e58f1e0e94407983fa18cd535cf76427019f1519 (patch) | |
tree | 4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/Lambert.hs | |
parent | 45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff) |
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Lambert.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Lambert.hs | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/lib/Numeric/GSL/Special/Lambert.hs b/lib/Numeric/GSL/Special/Lambert.hs index 3ea0596..7bc820c 100644 --- a/lib/Numeric/GSL/Special/Lambert.hs +++ b/lib/Numeric/GSL/Special/Lambert.hs | |||
@@ -1,17 +1,15 @@ | |||
1 | ------------------------------------------------------------ | 1 | ------------------------------------------------------------ |
2 | {- | | 2 | -- | |
3 | Module : Numeric.GSL.Special.Lambert | 3 | -- Module : Numeric.GSL.Special.Lambert |
4 | Copyright : (c) Alberto Ruiz 2006 | 4 | -- Copyright : (c) Alberto Ruiz 2006 |
5 | License : GPL-style | 5 | -- License : GPL |
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | 6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) |
7 | Stability : provisional | 7 | -- Stability : provisional |
8 | Portability : uses ffi | 8 | -- Portability : uses ffi |
9 | 9 | -- | |
10 | Wrappers for selected functions described at: | 10 | -- Wrappers for selected functions described at: |
11 | 11 | -- | |
12 | <http://www.google.com/search?q=gsl_sf_lambert.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | 12 | -- <http://www.google.com/search?q=gsl_sf_lambert.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> |
13 | |||
14 | -} | ||
15 | ------------------------------------------------------------ | 13 | ------------------------------------------------------------ |
16 | 14 | ||
17 | module Numeric.GSL.Special.Lambert( | 15 | module Numeric.GSL.Special.Lambert( |
@@ -24,31 +22,15 @@ module Numeric.GSL.Special.Lambert( | |||
24 | import Foreign(Ptr) | 22 | import Foreign(Ptr) |
25 | import Foreign.C.Types(CInt) | 23 | import Foreign.C.Types(CInt) |
26 | import Numeric.GSL.Special.Internal | 24 | import Numeric.GSL.Special.Internal |
27 | |||
28 | -- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result); | ||
29 | -- | ||
30 | -- <http://www.google.com/search?q=gsl_sf_lambert_W0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
31 | lambert_W0_e :: Double -> (Double,Double) | 25 | lambert_W0_e :: Double -> (Double,Double) |
32 | lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x | 26 | lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x |
33 | foreign import ccall "gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr () -> IO CInt | 27 | foreign import ccall "gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr () -> IO CInt |
34 | |||
35 | -- | wrapper for double gsl_sf_lambert_W0(double x); | ||
36 | -- | ||
37 | -- <http://www.google.com/search?q=gsl_sf_lambert_W0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
38 | lambert_W0 :: Double -> Double | 28 | lambert_W0 :: Double -> Double |
39 | lambert_W0 = gsl_sf_lambert_W0 | 29 | lambert_W0 = gsl_sf_lambert_W0 |
40 | foreign import ccall "gsl_sf_lambert_W0" gsl_sf_lambert_W0 :: Double -> Double | 30 | foreign import ccall "gsl_sf_lambert_W0" gsl_sf_lambert_W0 :: Double -> Double |
41 | |||
42 | -- | wrapper for int gsl_sf_lambert_Wm1_e(double x,gsl_sf_result* result); | ||
43 | -- | ||
44 | -- <http://www.google.com/search?q=gsl_sf_lambert_Wm1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
45 | lambert_Wm1_e :: Double -> (Double,Double) | 31 | lambert_Wm1_e :: Double -> (Double,Double) |
46 | lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x | 32 | lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x |
47 | foreign import ccall "gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr () -> IO CInt | 33 | foreign import ccall "gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr () -> IO CInt |
48 | |||
49 | -- | wrapper for double gsl_sf_lambert_Wm1(double x); | ||
50 | -- | ||
51 | -- <http://www.google.com/search?q=gsl_sf_lambert_Wm1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
52 | lambert_Wm1 :: Double -> Double | 34 | lambert_Wm1 :: Double -> Double |
53 | lambert_Wm1 = gsl_sf_lambert_Wm1 | 35 | lambert_Wm1 = gsl_sf_lambert_Wm1 |
54 | foreign import ccall "gsl_sf_lambert_Wm1" gsl_sf_lambert_Wm1 :: Double -> Double | 36 | foreign import ccall "gsl_sf_lambert_Wm1" gsl_sf_lambert_Wm1 :: Double -> Double |