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/Laguerre.hs | |
parent | b1b908c10ad7a393200651b4b23fc0b26efbc1b9 (diff) |
more automatic wrappers for simple special functions
Diffstat (limited to 'lib/GSL/Special/Laguerre.hs')
-rw-r--r-- | lib/GSL/Special/Laguerre.hs | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/lib/GSL/Special/Laguerre.hs b/lib/GSL/Special/Laguerre.hs new file mode 100644 index 0000000..6fa4343 --- /dev/null +++ b/lib/GSL/Special/Laguerre.hs | |||
@@ -0,0 +1,67 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | {- | | ||
3 | Module : GSL.Special.Laguerre | ||
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.Laguerre( | ||
16 | laguerre_1_e | ||
17 | , laguerre_2_e | ||
18 | , laguerre_3_e | ||
19 | , laguerre_1 | ||
20 | , laguerre_2 | ||
21 | , laguerre_3 | ||
22 | , laguerre_n_e | ||
23 | , laguerre_n | ||
24 | ) where | ||
25 | |||
26 | import Foreign(Ptr) | ||
27 | import GSL.Special.Internal | ||
28 | |||
29 | -- | wrapper for int gsl_sf_laguerre_1_e(double a,double x,gsl_sf_result* result); | ||
30 | laguerre_1_e :: Double -> Double -> (Double,Double) | ||
31 | laguerre_1_e a x = createSFR "laguerre_1_e" $ gsl_sf_laguerre_1_e a x | ||
32 | foreign import ccall "laguerre.h gsl_sf_laguerre_1_e" gsl_sf_laguerre_1_e :: Double -> Double -> Ptr Double -> IO(Int) | ||
33 | |||
34 | -- | wrapper for int gsl_sf_laguerre_2_e(double a,double x,gsl_sf_result* result); | ||
35 | laguerre_2_e :: Double -> Double -> (Double,Double) | ||
36 | laguerre_2_e a x = createSFR "laguerre_2_e" $ gsl_sf_laguerre_2_e a x | ||
37 | foreign import ccall "laguerre.h gsl_sf_laguerre_2_e" gsl_sf_laguerre_2_e :: Double -> Double -> Ptr Double -> IO(Int) | ||
38 | |||
39 | -- | wrapper for int gsl_sf_laguerre_3_e(double a,double x,gsl_sf_result* result); | ||
40 | laguerre_3_e :: Double -> Double -> (Double,Double) | ||
41 | laguerre_3_e a x = createSFR "laguerre_3_e" $ gsl_sf_laguerre_3_e a x | ||
42 | foreign import ccall "laguerre.h gsl_sf_laguerre_3_e" gsl_sf_laguerre_3_e :: Double -> Double -> Ptr Double -> IO(Int) | ||
43 | |||
44 | -- | wrapper for double gsl_sf_laguerre_1(double a,double x); | ||
45 | laguerre_1 :: Double -> Double -> Double | ||
46 | laguerre_1 = gsl_sf_laguerre_1 | ||
47 | foreign import ccall "laguerre.h gsl_sf_laguerre_1" gsl_sf_laguerre_1 :: Double -> Double -> Double | ||
48 | |||
49 | -- | wrapper for double gsl_sf_laguerre_2(double a,double x); | ||
50 | laguerre_2 :: Double -> Double -> Double | ||
51 | laguerre_2 = gsl_sf_laguerre_2 | ||
52 | foreign import ccall "laguerre.h gsl_sf_laguerre_2" gsl_sf_laguerre_2 :: Double -> Double -> Double | ||
53 | |||
54 | -- | wrapper for double gsl_sf_laguerre_3(double a,double x); | ||
55 | laguerre_3 :: Double -> Double -> Double | ||
56 | laguerre_3 = gsl_sf_laguerre_3 | ||
57 | foreign import ccall "laguerre.h gsl_sf_laguerre_3" gsl_sf_laguerre_3 :: Double -> Double -> Double | ||
58 | |||
59 | -- | wrapper for int gsl_sf_laguerre_n_e(int n,double a,double x,gsl_sf_result* result); | ||
60 | laguerre_n_e :: Int -> Double -> Double -> (Double,Double) | ||
61 | laguerre_n_e n a x = createSFR "laguerre_n_e" $ gsl_sf_laguerre_n_e n a x | ||
62 | foreign import ccall "laguerre.h gsl_sf_laguerre_n_e" gsl_sf_laguerre_n_e :: Int -> Double -> Double -> Ptr Double -> IO(Int) | ||
63 | |||
64 | -- | wrapper for double gsl_sf_laguerre_n(int n,double a,double x); | ||
65 | laguerre_n :: Int -> Double -> Double -> Double | ||
66 | laguerre_n = gsl_sf_laguerre_n | ||
67 | foreign import ccall "laguerre.h gsl_sf_laguerre_n" gsl_sf_laguerre_n :: Int -> Double -> Double -> Double | ||