diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-02-24 13:23:42 +0000 |
commit | 54bcc1fc1e0f9676cb10f627f412eeeea34b5d2c (patch) | |
tree | 3983a0046ce08a2390c5a495aae60fd419c58986 /lib/Numeric/GSL/Special/Trig.hs | |
parent | aae45de54aca92c5f0f013e46c6d6f65508d76f5 (diff) |
created package hmatrix-special
Diffstat (limited to 'lib/Numeric/GSL/Special/Trig.hs')
-rw-r--r-- | lib/Numeric/GSL/Special/Trig.hs | 138 |
1 files changed, 0 insertions, 138 deletions
diff --git a/lib/Numeric/GSL/Special/Trig.hs b/lib/Numeric/GSL/Special/Trig.hs deleted file mode 100644 index 4b7ae67..0000000 --- a/lib/Numeric/GSL/Special/Trig.hs +++ /dev/null | |||
@@ -1,138 +0,0 @@ | |||
1 | ------------------------------------------------------------ | ||
2 | -- | | ||
3 | -- Module : Numeric.GSL.Special.Trig | ||
4 | -- Copyright : (c) Alberto Ruiz 2006 | ||
5 | -- License : GPL | ||
6 | -- Maintainer : Alberto Ruiz (aruiz at um dot es) | ||
7 | -- Stability : provisional | ||
8 | -- Portability : uses ffi | ||
9 | -- | ||
10 | -- Wrappers for selected functions described at: | ||
11 | -- | ||
12 | -- <http://www.google.com/search?q=gsl_sf_trig.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> | ||
13 | ------------------------------------------------------------ | ||
14 | |||
15 | module Numeric.GSL.Special.Trig( | ||
16 | sin_e | ||
17 | , Numeric.GSL.Special.Trig.sin | ||
18 | , cos_e | ||
19 | , Numeric.GSL.Special.Trig.cos | ||
20 | , hypot_e | ||
21 | , hypot | ||
22 | , sinc_e | ||
23 | , sinc | ||
24 | , lnsinh_e | ||
25 | , lnsinh | ||
26 | , lncosh_e | ||
27 | , lncosh | ||
28 | , sin_err_e | ||
29 | , cos_err_e | ||
30 | , angle_restrict_symm | ||
31 | , angle_restrict_pos | ||
32 | , angle_restrict_symm_err_e | ||
33 | , angle_restrict_pos_err_e | ||
34 | ) where | ||
35 | |||
36 | import Foreign(Ptr) | ||
37 | import Foreign.C.Types(CInt) | ||
38 | import Numeric.GSL.Special.Internal | ||
39 | |||
40 | sin_e :: Double -> (Double,Double) | ||
41 | sin_e x = createSFR "sin_e" $ gsl_sf_sin_e x | ||
42 | foreign import ccall SAFE_CHEAP "gsl_sf_sin_e" gsl_sf_sin_e :: Double -> Ptr () -> IO CInt | ||
43 | |||
44 | sin :: Double -> Double | ||
45 | sin = gsl_sf_sin | ||
46 | foreign import ccall SAFE_CHEAP "gsl_sf_sin" gsl_sf_sin :: Double -> Double | ||
47 | |||
48 | cos_e :: Double -> (Double,Double) | ||
49 | cos_e x = createSFR "cos_e" $ gsl_sf_cos_e x | ||
50 | foreign import ccall SAFE_CHEAP "gsl_sf_cos_e" gsl_sf_cos_e :: Double -> Ptr () -> IO CInt | ||
51 | |||
52 | cos :: Double -> Double | ||
53 | cos = gsl_sf_cos | ||
54 | foreign import ccall SAFE_CHEAP "gsl_sf_cos" gsl_sf_cos :: Double -> Double | ||
55 | |||
56 | hypot_e :: Double -> Double -> (Double,Double) | ||
57 | hypot_e x y = createSFR "hypot_e" $ gsl_sf_hypot_e x y | ||
58 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot_e" gsl_sf_hypot_e :: Double -> Double -> Ptr () -> IO CInt | ||
59 | |||
60 | hypot :: Double -> Double -> Double | ||
61 | hypot = gsl_sf_hypot | ||
62 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double | ||
63 | |||
64 | complex_sin_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
65 | complex_sin_e zr zi szr = createSFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi szr | ||
66 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_sin_e" gsl_sf_complex_sin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
67 | |||
68 | complex_cos_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
69 | complex_cos_e zr zi czr = createSFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi czr | ||
70 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_cos_e" gsl_sf_complex_cos_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
71 | |||
72 | complex_logsin_e :: Double -> Double -> Ptr () -> (Double,Double) | ||
73 | complex_logsin_e zr zi lszr = createSFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi lszr | ||
74 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_logsin_e" gsl_sf_complex_logsin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
75 | |||
76 | sinc_e :: Double -> (Double,Double) | ||
77 | sinc_e x = createSFR "sinc_e" $ gsl_sf_sinc_e x | ||
78 | foreign import ccall SAFE_CHEAP "gsl_sf_sinc_e" gsl_sf_sinc_e :: Double -> Ptr () -> IO CInt | ||
79 | |||
80 | sinc :: Double -> Double | ||
81 | sinc = gsl_sf_sinc | ||
82 | foreign import ccall SAFE_CHEAP "gsl_sf_sinc" gsl_sf_sinc :: Double -> Double | ||
83 | |||
84 | lnsinh_e :: Double -> (Double,Double) | ||
85 | lnsinh_e x = createSFR "lnsinh_e" $ gsl_sf_lnsinh_e x | ||
86 | foreign import ccall SAFE_CHEAP "gsl_sf_lnsinh_e" gsl_sf_lnsinh_e :: Double -> Ptr () -> IO CInt | ||
87 | |||
88 | lnsinh :: Double -> Double | ||
89 | lnsinh = gsl_sf_lnsinh | ||
90 | foreign import ccall SAFE_CHEAP "gsl_sf_lnsinh" gsl_sf_lnsinh :: Double -> Double | ||
91 | |||
92 | lncosh_e :: Double -> (Double,Double) | ||
93 | lncosh_e x = createSFR "lncosh_e" $ gsl_sf_lncosh_e x | ||
94 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh_e" gsl_sf_lncosh_e :: Double -> Ptr () -> IO CInt | ||
95 | |||
96 | lncosh :: Double -> Double | ||
97 | lncosh = gsl_sf_lncosh | ||
98 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double | ||
99 | |||
100 | polar_to_rect :: Double -> Double -> Ptr () -> (Double,Double) | ||
101 | polar_to_rect r theta x = createSFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta x | ||
102 | foreign import ccall SAFE_CHEAP "gsl_sf_polar_to_rect" gsl_sf_polar_to_rect :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
103 | |||
104 | rect_to_polar :: Double -> Double -> Ptr () -> (Double,Double) | ||
105 | rect_to_polar x y r = createSFR "rect_to_polar" $ gsl_sf_rect_to_polar x y r | ||
106 | foreign import ccall SAFE_CHEAP "gsl_sf_rect_to_polar" gsl_sf_rect_to_polar :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | ||
107 | |||
108 | sin_err_e :: Double -> Double -> (Double,Double) | ||
109 | sin_err_e x dx = createSFR "sin_err_e" $ gsl_sf_sin_err_e x dx | ||
110 | foreign import ccall SAFE_CHEAP "gsl_sf_sin_err_e" gsl_sf_sin_err_e :: Double -> Double -> Ptr () -> IO CInt | ||
111 | |||
112 | cos_err_e :: Double -> Double -> (Double,Double) | ||
113 | cos_err_e x dx = createSFR "cos_err_e" $ gsl_sf_cos_err_e x dx | ||
114 | foreign import ccall SAFE_CHEAP "gsl_sf_cos_err_e" gsl_sf_cos_err_e :: Double -> Double -> Ptr () -> IO CInt | ||
115 | |||
116 | angle_restrict_symm_e :: Ptr Double -> CInt | ||
117 | angle_restrict_symm_e = gsl_sf_angle_restrict_symm_e | ||
118 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm_e" gsl_sf_angle_restrict_symm_e :: Ptr Double -> CInt | ||
119 | |||
120 | angle_restrict_symm :: Double -> Double | ||
121 | angle_restrict_symm = gsl_sf_angle_restrict_symm | ||
122 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm" gsl_sf_angle_restrict_symm :: Double -> Double | ||
123 | |||
124 | angle_restrict_pos_e :: Ptr Double -> CInt | ||
125 | angle_restrict_pos_e = gsl_sf_angle_restrict_pos_e | ||
126 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos_e" gsl_sf_angle_restrict_pos_e :: Ptr Double -> CInt | ||
127 | |||
128 | angle_restrict_pos :: Double -> Double | ||
129 | angle_restrict_pos = gsl_sf_angle_restrict_pos | ||
130 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos" gsl_sf_angle_restrict_pos :: Double -> Double | ||
131 | |||
132 | angle_restrict_symm_err_e :: Double -> (Double,Double) | ||
133 | angle_restrict_symm_err_e theta = createSFR "angle_restrict_symm_err_e" $ gsl_sf_angle_restrict_symm_err_e theta | ||
134 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm_err_e" gsl_sf_angle_restrict_symm_err_e :: Double -> Ptr () -> IO CInt | ||
135 | |||
136 | angle_restrict_pos_err_e :: Double -> (Double,Double) | ||
137 | angle_restrict_pos_err_e theta = createSFR "angle_restrict_pos_err_e" $ gsl_sf_angle_restrict_pos_err_e theta | ||
138 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos_err_e" gsl_sf_angle_restrict_pos_err_e :: Double -> Ptr () -> IO CInt | ||