diff options
Diffstat (limited to 'lib/GSL/Special/Clausen.hs')
-rw-r--r-- | lib/GSL/Special/Clausen.hs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/GSL/Special/Clausen.hs b/lib/GSL/Special/Clausen.hs new file mode 100644 index 0000000..9089499 --- /dev/null +++ b/lib/GSL/Special/Clausen.hs | |||
@@ -0,0 +1,31 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : GSL.Special.Clausen | ||
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.Clausen( | ||
16 | clausen_e | ||
17 | , clausen | ||
18 | ) where | ||
19 | |||
20 | import Foreign(Ptr) | ||
21 | import GSL.Special.Internal | ||
22 | |||
23 | -- | wrapper for int gsl_sf_clausen_e(double x,gsl_sf_result* result); | ||
24 | clausen_e :: Double -> (Double,Double) | ||
25 | clausen_e x = createSFR "clausen_e" $ gsl_sf_clausen_e x | ||
26 | foreign import ccall "clausen.h gsl_sf_clausen_e" gsl_sf_clausen_e :: Double -> Ptr Double -> IO(Int) | ||
27 | |||
28 | -- | wrapper for double gsl_sf_clausen(double x); | ||
29 | clausen :: Double -> Double | ||
30 | clausen = gsl_sf_clausen | ||
31 | foreign import ccall "clausen.h gsl_sf_clausen" gsl_sf_clausen :: Double -> Double | ||