diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-07-29 15:43:21 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-07-29 15:43:21 +0000 |
commit | b9db4d25d87cd4ab0f493413db92fb41b7eacda9 (patch) | |
tree | a447fe6f7e16b3768e912064a033ce257040720e /lib/GSL/Special/Lambert.hs | |
parent | b1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff) |
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Lambert.hs')
-rw-r--r-- | lib/GSL/Special/Lambert.hs | 43 |
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 | {- | | ||
3 | Module : GSL.Special.Lambert | ||
4 | Copyright : (c) Alberto Ruiz 2006 | ||
5 | License : GPL-style | ||
6 | Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | Stability : provisional | ||
8 | Portability : uses ffi | ||
9 | |||
10 | |||
11 | |||
12 | -} | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module GSL.Special.Lambert( | ||
16 | lambert_W0_e | ||
17 | , lambert_W0 | ||
18 | , lambert_Wm1_e | ||
19 | , lambert_Wm1 | ||
20 | ) where | ||
21 | |||
22 | import Foreign(Ptr) | ||
23 | import GSL.Special.Internal | ||
24 | |||
25 | -- | wrapper for int gsl_sf_lambert_W0_e(double x,gsl_sf_result* result); | ||
26 | lambert_W0_e :: Double -> (Double,Double) | ||
27 | lambert_W0_e x = createSFR "lambert_W0_e" $ gsl_sf_lambert_W0_e x | ||
28 | foreign 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); | ||
31 | lambert_W0 :: Double -> Double | ||
32 | lambert_W0 = gsl_sf_lambert_W0 | ||
33 | foreign 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); | ||
36 | lambert_Wm1_e :: Double -> (Double,Double) | ||
37 | lambert_Wm1_e x = createSFR "lambert_Wm1_e" $ gsl_sf_lambert_Wm1_e x | ||
38 | foreign 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); | ||
41 | lambert_Wm1 :: Double -> Double | ||
42 | lambert_Wm1 = gsl_sf_lambert_Wm1 | ||
43 | foreign import ccall "lambert.h gsl_sf_lambert_Wm1" gsl_sf_lambert_Wm1 :: Double -> Double | ||