summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Special/Trig.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
committerAlberto Ruiz <aruiz@um.es>2009-06-17 12:27:17 +0000
commite58f1e0e94407983fa18cd535cf76427019f1519 (patch)
tree4ffffdb92fd78e2233485895fb288111af0bf386 /lib/Numeric/GSL/Special/Trig.hs
parent45e0e90ffdedd3c1fbe3da750018c65a1535cf75 (diff)
added special transport and elljac
Diffstat (limited to 'lib/Numeric/GSL/Special/Trig.hs')
-rw-r--r--lib/Numeric/GSL/Special/Trig.hs124
1 files changed, 11 insertions, 113 deletions
diff --git a/lib/Numeric/GSL/Special/Trig.hs b/lib/Numeric/GSL/Special/Trig.hs
index 1869733..f670070 100644
--- a/lib/Numeric/GSL/Special/Trig.hs
+++ b/lib/Numeric/GSL/Special/Trig.hs
@@ -1,17 +1,15 @@
1------------------------------------------------------------ 1------------------------------------------------------------
2{- | 2-- |
3Module : Numeric.GSL.Special.Trig 3-- Module : Numeric.GSL.Special.Trig
4Copyright : (c) Alberto Ruiz 2006 4-- Copyright : (c) Alberto Ruiz 2006
5License : GPL-style 5-- License : GPL
6Maintainer : Alberto Ruiz (aruiz at um dot es) 6-- Maintainer : Alberto Ruiz (aruiz at um dot es)
7Stability : provisional 7-- Stability : provisional
8Portability : uses ffi 8-- Portability : uses ffi
9 9--
10Wrappers for selected functions described at: 10-- Wrappers for selected functions described at:
11 11--
12<http://www.google.com/search?q=gsl_sf_trig.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky> 12-- <http://www.google.com/search?q=gsl_sf_trig.h&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
13
14-}
15------------------------------------------------------------ 13------------------------------------------------------------
16 14
17module Numeric.GSL.Special.Trig( 15module Numeric.GSL.Special.Trig(
@@ -38,178 +36,78 @@ module Numeric.GSL.Special.Trig(
38import Foreign(Ptr) 36import Foreign(Ptr)
39import Foreign.C.Types(CInt) 37import Foreign.C.Types(CInt)
40import Numeric.GSL.Special.Internal 38import Numeric.GSL.Special.Internal
41
42-- | wrapper for int gsl_sf_sin_e(double x,gsl_sf_result* result);
43--
44-- <http://www.google.com/search?q=gsl_sf_sin_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
45sin_e :: Double -> (Double,Double) 39sin_e :: Double -> (Double,Double)
46sin_e x = createSFR "sin_e" $ gsl_sf_sin_e x 40sin_e x = createSFR "sin_e" $ gsl_sf_sin_e x
47foreign import ccall "gsl_sf_sin_e" gsl_sf_sin_e :: Double -> Ptr () -> IO CInt 41foreign import ccall "gsl_sf_sin_e" gsl_sf_sin_e :: Double -> Ptr () -> IO CInt
48
49-- | wrapper for double gsl_sf_sin(double x);
50--
51-- <http://www.google.com/search?q=gsl_sf_sin&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
52sin :: Double -> Double 42sin :: Double -> Double
53sin = gsl_sf_sin 43sin = gsl_sf_sin
54foreign import ccall "gsl_sf_sin" gsl_sf_sin :: Double -> Double 44foreign import ccall "gsl_sf_sin" gsl_sf_sin :: Double -> Double
55
56-- | wrapper for int gsl_sf_cos_e(double x,gsl_sf_result* result);
57--
58-- <http://www.google.com/search?q=gsl_sf_cos_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
59cos_e :: Double -> (Double,Double) 45cos_e :: Double -> (Double,Double)
60cos_e x = createSFR "cos_e" $ gsl_sf_cos_e x 46cos_e x = createSFR "cos_e" $ gsl_sf_cos_e x
61foreign import ccall "gsl_sf_cos_e" gsl_sf_cos_e :: Double -> Ptr () -> IO CInt 47foreign import ccall "gsl_sf_cos_e" gsl_sf_cos_e :: Double -> Ptr () -> IO CInt
62
63-- | wrapper for double gsl_sf_cos(double x);
64--
65-- <http://www.google.com/search?q=gsl_sf_cos&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
66cos :: Double -> Double 48cos :: Double -> Double
67cos = gsl_sf_cos 49cos = gsl_sf_cos
68foreign import ccall "gsl_sf_cos" gsl_sf_cos :: Double -> Double 50foreign import ccall "gsl_sf_cos" gsl_sf_cos :: Double -> Double
69
70-- | wrapper for int gsl_sf_hypot_e(double x,double y,gsl_sf_result* result);
71--
72-- <http://www.google.com/search?q=gsl_sf_hypot_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
73hypot_e :: Double -> Double -> (Double,Double) 51hypot_e :: Double -> Double -> (Double,Double)
74hypot_e x y = createSFR "hypot_e" $ gsl_sf_hypot_e x y 52hypot_e x y = createSFR "hypot_e" $ gsl_sf_hypot_e x y
75foreign import ccall "gsl_sf_hypot_e" gsl_sf_hypot_e :: Double -> Double -> Ptr () -> IO CInt 53foreign import ccall "gsl_sf_hypot_e" gsl_sf_hypot_e :: Double -> Double -> Ptr () -> IO CInt
76
77-- | wrapper for double gsl_sf_hypot(double x,double y);
78--
79-- <http://www.google.com/search?q=gsl_sf_hypot&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
80hypot :: Double -> Double -> Double 54hypot :: Double -> Double -> Double
81hypot = gsl_sf_hypot 55hypot = gsl_sf_hypot
82foreign import ccall "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double 56foreign import ccall "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double
83
84-- | wrapper for int gsl_sf_complex_sin_e(double zr,double zi,gsl_sf_result* szr,gsl_sf_result* szi);
85--
86-- <http://www.google.com/search?q=gsl_sf_complex_sin_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
87complex_sin_e :: Double -> Double -> Ptr () -> (Double,Double) 57complex_sin_e :: Double -> Double -> Ptr () -> (Double,Double)
88complex_sin_e zr zi szr = createSFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi szr 58complex_sin_e zr zi szr = createSFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi szr
89foreign import ccall "gsl_sf_complex_sin_e" gsl_sf_complex_sin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 59foreign import ccall "gsl_sf_complex_sin_e" gsl_sf_complex_sin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
90
91-- | wrapper for int gsl_sf_complex_cos_e(double zr,double zi,gsl_sf_result* czr,gsl_sf_result* czi);
92--
93-- <http://www.google.com/search?q=gsl_sf_complex_cos_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
94complex_cos_e :: Double -> Double -> Ptr () -> (Double,Double) 60complex_cos_e :: Double -> Double -> Ptr () -> (Double,Double)
95complex_cos_e zr zi czr = createSFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi czr 61complex_cos_e zr zi czr = createSFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi czr
96foreign import ccall "gsl_sf_complex_cos_e" gsl_sf_complex_cos_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 62foreign import ccall "gsl_sf_complex_cos_e" gsl_sf_complex_cos_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
97
98-- | wrapper for int gsl_sf_complex_logsin_e(double zr,double zi,gsl_sf_result* lszr,gsl_sf_result* lszi);
99--
100-- <http://www.google.com/search?q=gsl_sf_complex_logsin_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
101complex_logsin_e :: Double -> Double -> Ptr () -> (Double,Double) 63complex_logsin_e :: Double -> Double -> Ptr () -> (Double,Double)
102complex_logsin_e zr zi lszr = createSFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi lszr 64complex_logsin_e zr zi lszr = createSFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi lszr
103foreign import ccall "gsl_sf_complex_logsin_e" gsl_sf_complex_logsin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 65foreign import ccall "gsl_sf_complex_logsin_e" gsl_sf_complex_logsin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
104
105-- | wrapper for int gsl_sf_sinc_e(double x,gsl_sf_result* result);
106--
107-- <http://www.google.com/search?q=gsl_sf_sinc_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
108sinc_e :: Double -> (Double,Double) 66sinc_e :: Double -> (Double,Double)
109sinc_e x = createSFR "sinc_e" $ gsl_sf_sinc_e x 67sinc_e x = createSFR "sinc_e" $ gsl_sf_sinc_e x
110foreign import ccall "gsl_sf_sinc_e" gsl_sf_sinc_e :: Double -> Ptr () -> IO CInt 68foreign import ccall "gsl_sf_sinc_e" gsl_sf_sinc_e :: Double -> Ptr () -> IO CInt
111
112-- | wrapper for double gsl_sf_sinc(double x);
113--
114-- <http://www.google.com/search?q=gsl_sf_sinc&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
115sinc :: Double -> Double 69sinc :: Double -> Double
116sinc = gsl_sf_sinc 70sinc = gsl_sf_sinc
117foreign import ccall "gsl_sf_sinc" gsl_sf_sinc :: Double -> Double 71foreign import ccall "gsl_sf_sinc" gsl_sf_sinc :: Double -> Double
118
119-- | wrapper for int gsl_sf_lnsinh_e(double x,gsl_sf_result* result);
120--
121-- <http://www.google.com/search?q=gsl_sf_lnsinh_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
122lnsinh_e :: Double -> (Double,Double) 72lnsinh_e :: Double -> (Double,Double)
123lnsinh_e x = createSFR "lnsinh_e" $ gsl_sf_lnsinh_e x 73lnsinh_e x = createSFR "lnsinh_e" $ gsl_sf_lnsinh_e x
124foreign import ccall "gsl_sf_lnsinh_e" gsl_sf_lnsinh_e :: Double -> Ptr () -> IO CInt 74foreign import ccall "gsl_sf_lnsinh_e" gsl_sf_lnsinh_e :: Double -> Ptr () -> IO CInt
125
126-- | wrapper for double gsl_sf_lnsinh(double x);
127--
128-- <http://www.google.com/search?q=gsl_sf_lnsinh&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
129lnsinh :: Double -> Double 75lnsinh :: Double -> Double
130lnsinh = gsl_sf_lnsinh 76lnsinh = gsl_sf_lnsinh
131foreign import ccall "gsl_sf_lnsinh" gsl_sf_lnsinh :: Double -> Double 77foreign import ccall "gsl_sf_lnsinh" gsl_sf_lnsinh :: Double -> Double
132
133-- | wrapper for int gsl_sf_lncosh_e(double x,gsl_sf_result* result);
134--
135-- <http://www.google.com/search?q=gsl_sf_lncosh_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
136lncosh_e :: Double -> (Double,Double) 78lncosh_e :: Double -> (Double,Double)
137lncosh_e x = createSFR "lncosh_e" $ gsl_sf_lncosh_e x 79lncosh_e x = createSFR "lncosh_e" $ gsl_sf_lncosh_e x
138foreign import ccall "gsl_sf_lncosh_e" gsl_sf_lncosh_e :: Double -> Ptr () -> IO CInt 80foreign import ccall "gsl_sf_lncosh_e" gsl_sf_lncosh_e :: Double -> Ptr () -> IO CInt
139
140-- | wrapper for double gsl_sf_lncosh(double x);
141--
142-- <http://www.google.com/search?q=gsl_sf_lncosh&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
143lncosh :: Double -> Double 81lncosh :: Double -> Double
144lncosh = gsl_sf_lncosh 82lncosh = gsl_sf_lncosh
145foreign import ccall "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double 83foreign import ccall "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double
146
147-- | wrapper for int gsl_sf_polar_to_rect(double r,double theta,gsl_sf_result* x,gsl_sf_result* y);
148--
149-- <http://www.google.com/search?q=gsl_sf_polar_to_rect&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
150polar_to_rect :: Double -> Double -> Ptr () -> (Double,Double) 84polar_to_rect :: Double -> Double -> Ptr () -> (Double,Double)
151polar_to_rect r theta x = createSFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta x 85polar_to_rect r theta x = createSFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta x
152foreign import ccall "gsl_sf_polar_to_rect" gsl_sf_polar_to_rect :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 86foreign import ccall "gsl_sf_polar_to_rect" gsl_sf_polar_to_rect :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
153
154-- | wrapper for int gsl_sf_rect_to_polar(double x,double y,gsl_sf_result* r,gsl_sf_result* theta);
155--
156-- <http://www.google.com/search?q=gsl_sf_rect_to_polar&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
157rect_to_polar :: Double -> Double -> Ptr () -> (Double,Double) 87rect_to_polar :: Double -> Double -> Ptr () -> (Double,Double)
158rect_to_polar x y r = createSFR "rect_to_polar" $ gsl_sf_rect_to_polar x y r 88rect_to_polar x y r = createSFR "rect_to_polar" $ gsl_sf_rect_to_polar x y r
159foreign import ccall "gsl_sf_rect_to_polar" gsl_sf_rect_to_polar :: Double -> Double -> Ptr () -> Ptr () -> IO CInt 89foreign import ccall "gsl_sf_rect_to_polar" gsl_sf_rect_to_polar :: Double -> Double -> Ptr () -> Ptr () -> IO CInt
160
161-- | wrapper for int gsl_sf_sin_err_e(double x,double dx,gsl_sf_result* result);
162--
163-- <http://www.google.com/search?q=gsl_sf_sin_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
164sin_err_e :: Double -> Double -> (Double,Double) 90sin_err_e :: Double -> Double -> (Double,Double)
165sin_err_e x dx = createSFR "sin_err_e" $ gsl_sf_sin_err_e x dx 91sin_err_e x dx = createSFR "sin_err_e" $ gsl_sf_sin_err_e x dx
166foreign import ccall "gsl_sf_sin_err_e" gsl_sf_sin_err_e :: Double -> Double -> Ptr () -> IO CInt 92foreign import ccall "gsl_sf_sin_err_e" gsl_sf_sin_err_e :: Double -> Double -> Ptr () -> IO CInt
167
168-- | wrapper for int gsl_sf_cos_err_e(double x,double dx,gsl_sf_result* result);
169--
170-- <http://www.google.com/search?q=gsl_sf_cos_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
171cos_err_e :: Double -> Double -> (Double,Double) 93cos_err_e :: Double -> Double -> (Double,Double)
172cos_err_e x dx = createSFR "cos_err_e" $ gsl_sf_cos_err_e x dx 94cos_err_e x dx = createSFR "cos_err_e" $ gsl_sf_cos_err_e x dx
173foreign import ccall "gsl_sf_cos_err_e" gsl_sf_cos_err_e :: Double -> Double -> Ptr () -> IO CInt 95foreign import ccall "gsl_sf_cos_err_e" gsl_sf_cos_err_e :: Double -> Double -> Ptr () -> IO CInt
174
175-- | wrapper for int gsl_sf_angle_restrict_symm_e(double* theta);
176--
177-- <http://www.google.com/search?q=gsl_sf_angle_restrict_symm_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
178angle_restrict_symm_e :: Ptr Double -> CInt 96angle_restrict_symm_e :: Ptr Double -> CInt
179angle_restrict_symm_e = gsl_sf_angle_restrict_symm_e 97angle_restrict_symm_e = gsl_sf_angle_restrict_symm_e
180foreign import ccall "gsl_sf_angle_restrict_symm_e" gsl_sf_angle_restrict_symm_e :: Ptr Double -> CInt 98foreign import ccall "gsl_sf_angle_restrict_symm_e" gsl_sf_angle_restrict_symm_e :: Ptr Double -> CInt
181
182-- | wrapper for double gsl_sf_angle_restrict_symm(double theta);
183--
184-- <http://www.google.com/search?q=gsl_sf_angle_restrict_symm&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
185angle_restrict_symm :: Double -> Double 99angle_restrict_symm :: Double -> Double
186angle_restrict_symm = gsl_sf_angle_restrict_symm 100angle_restrict_symm = gsl_sf_angle_restrict_symm
187foreign import ccall "gsl_sf_angle_restrict_symm" gsl_sf_angle_restrict_symm :: Double -> Double 101foreign import ccall "gsl_sf_angle_restrict_symm" gsl_sf_angle_restrict_symm :: Double -> Double
188
189-- | wrapper for int gsl_sf_angle_restrict_pos_e(double* theta);
190--
191-- <http://www.google.com/search?q=gsl_sf_angle_restrict_pos_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
192angle_restrict_pos_e :: Ptr Double -> CInt 102angle_restrict_pos_e :: Ptr Double -> CInt
193angle_restrict_pos_e = gsl_sf_angle_restrict_pos_e 103angle_restrict_pos_e = gsl_sf_angle_restrict_pos_e
194foreign import ccall "gsl_sf_angle_restrict_pos_e" gsl_sf_angle_restrict_pos_e :: Ptr Double -> CInt 104foreign import ccall "gsl_sf_angle_restrict_pos_e" gsl_sf_angle_restrict_pos_e :: Ptr Double -> CInt
195
196-- | wrapper for double gsl_sf_angle_restrict_pos(double theta);
197--
198-- <http://www.google.com/search?q=gsl_sf_angle_restrict_pos&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
199angle_restrict_pos :: Double -> Double 105angle_restrict_pos :: Double -> Double
200angle_restrict_pos = gsl_sf_angle_restrict_pos 106angle_restrict_pos = gsl_sf_angle_restrict_pos
201foreign import ccall "gsl_sf_angle_restrict_pos" gsl_sf_angle_restrict_pos :: Double -> Double 107foreign import ccall "gsl_sf_angle_restrict_pos" gsl_sf_angle_restrict_pos :: Double -> Double
202
203-- | wrapper for int gsl_sf_angle_restrict_symm_err_e(double theta,gsl_sf_result* result);
204--
205-- <http://www.google.com/search?q=gsl_sf_angle_restrict_symm_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
206angle_restrict_symm_err_e :: Double -> (Double,Double) 108angle_restrict_symm_err_e :: Double -> (Double,Double)
207angle_restrict_symm_err_e theta = createSFR "angle_restrict_symm_err_e" $ gsl_sf_angle_restrict_symm_err_e theta 109angle_restrict_symm_err_e theta = createSFR "angle_restrict_symm_err_e" $ gsl_sf_angle_restrict_symm_err_e theta
208foreign import ccall "gsl_sf_angle_restrict_symm_err_e" gsl_sf_angle_restrict_symm_err_e :: Double -> Ptr () -> IO CInt 110foreign import ccall "gsl_sf_angle_restrict_symm_err_e" gsl_sf_angle_restrict_symm_err_e :: Double -> Ptr () -> IO CInt
209
210-- | wrapper for int gsl_sf_angle_restrict_pos_err_e(double theta,gsl_sf_result* result);
211--
212-- <http://www.google.com/search?q=gsl_sf_angle_restrict_pos_err_e&as_sitesearch=www.gnu.org/software/gsl/manual&btnI=Lucky>
213angle_restrict_pos_err_e :: Double -> (Double,Double) 111angle_restrict_pos_err_e :: Double -> (Double,Double)
214angle_restrict_pos_err_e theta = createSFR "angle_restrict_pos_err_e" $ gsl_sf_angle_restrict_pos_err_e theta 112angle_restrict_pos_err_e theta = createSFR "angle_restrict_pos_err_e" $ gsl_sf_angle_restrict_pos_err_e theta
215foreign import ccall "gsl_sf_angle_restrict_pos_err_e" gsl_sf_angle_restrict_pos_err_e :: Double -> Ptr () -> IO CInt 113foreign import ccall "gsl_sf_angle_restrict_pos_err_e" gsl_sf_angle_restrict_pos_err_e :: Double -> Ptr () -> IO CInt