summaryrefslogtreecommitdiff
path: root/lib/GSL/Special/Lambert.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
committerAlberto Ruiz <aruiz@um.es>2007-07-29 15:43:21 +0000
commitb9db4d25d87cd4ab0f493413db92fb41b7eacda9 (patch)
treea447fe6f7e16b3768e912064a033ce257040720e /lib/GSL/Special/Lambert.hs
parentb1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff)
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Lambert.hs')
-rw-r--r--lib/GSL/Special/Lambert.hs43
1 files changed, 43 insertions, 0 deletions
diff --git a/lib/GSL/Special/Lambert.hs b/lib/GSL/Special/Lambert.hs
new file mode 100644
index 0000000..ff4c75c
--- /dev/null
+++ b/lib/GSL/Special/Lambert.hs
@@ -0,0 +1,43 @@
1------------------------------------------------------------
2{- |
3Module : 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
10
11
12-}
13------------------------------------------------------------
14
15module GSL.Special.Lambert(
16 lambert_W0_e
17, lambert_W0
18, lambert_Wm1_e
19, lambert_Wm1
20) where
21
22import Foreign(Ptr)
23import GSL.Special.Internal
24
25-- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result);
26lambert_W0_e :: Double -> (Double,Double)
27lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x
28foreign import ccall "lambert.h gsl_sf_lambert_W0_e" gsl_sf_lambert_W0_e :: Double -> Ptr Double -> IO(Int)
29
30-- | wrapper for double gsl_sf_lambert_W0(double x);
31lambert_W0 :: Double -> Double
32lambert_W0 = gsl_sf_lambert_W0
33foreign import ccall "lambert.h gsl_sf_lambert_W0" gsl_sf_lambert_W0 :: Double -> Double
34
35-- | wrapper for int gsl_sf_lambert_Wm1_e(double x,gsl_sf_result* result);
36lambert_Wm1_e :: Double -> (Double,Double)
37lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x
38foreign import ccall "lambert.h gsl_sf_lambert_Wm1_e" gsl_sf_lambert_Wm1_e :: Double -> Ptr Double -> IO(Int)
39
40-- | wrapper for double gsl_sf_lambert_Wm1(double x);
41lambert_Wm1 :: Double -> Double
42lambert_Wm1 = gsl_sf_lambert_Wm1
43foreign import ccall "lambert.h gsl_sf_lambert_Wm1" gsl_sf_lambert_Wm1 :: Double -> Double