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