summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Lambert.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/Lambert.hs
parent768f08d4134a066d773d56a9c03ae688e3850352 (diff)
LinearAlgebra and GSL moved to Numeric
Diffstat (limited to 'lib/Numeric/GSL/Special/Lambert.hs')
-rw-r--r--lib/Numeric/GSL/Special/Lambert.hs53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/Numeric/GSL/Special/Lambert.hs b/lib/Numeric/GSL/Special/Lambert.hs
new file mode 100644
index 0000000..ad5579f
--- /dev/null
+++ b/lib/Numeric/GSL/Special/Lambert.hs
@@ -0,0 +1,53 @@
1------------------------------------------------------------
2{- |
3Module : Numeric.GSL.Special.Lambert
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_lambert.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
13
14-}
15------------------------------------------------------------
16
17module Numeric.GSL.Special.Lambert(
18 lambert_W0_e
19, lambert_W0
20, lambert_Wm1_e
21, lambert_Wm1
22) where
23
24import Foreign(Ptr)
25import Numeric.GSL.Special.Internal
26
27-- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result);
28--
29-- <http://www.google.com/search?q=gsl_sf_lambert_W0_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
30lambert_W0_e :: Double -> (Double,Double)
31lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x
32foreign import ccall "lambert.h gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr Double -> IO(Int)
33
34-- | wrapper for double gsl_sf_lambert_W0(double x);
35--
36-- <http://www.google.com/search?q=gsl_sf_lambert_W0&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
37lambert_W0 :: Double -> Double
38lambert_W0 = gsl_sf_lambert_W0
39foreign import ccall "lambert.h gsl_sf_lambert_W0" gsl_sf_lambert_W0 :: Double -> Double
40
41-- | wrapper for int gsl_sf_lambert_Wm1_e(double x,gsl_sf_result* result);
42--
43-- <http://www.google.com/search?q=gsl_sf_lambert_Wm1_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
44lambert_Wm1_e :: Double -> (Double,Double)
45lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x
46foreign import ccall "lambert.h gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr Double -> IO(Int)
47
48-- | wrapper for double gsl_sf_lambert_Wm1(double x);
49--
50-- <http://www.google.com/search?q=gsl_sf_lambert_Wm1&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
51lambert_Wm1 :: Double -> Double
52lambert_Wm1 = gsl_sf_lambert_Wm1
53foreign import ccall "lambert.h gsl_sf_lambert_Wm1" gsl_sf_lambert_Wm1 :: Double -> Double