diff options
Diffstat (limited to 'packages/special/lib/Numeric/GSL/Special/Trig.hs')
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Trig.hs | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Trig.hs b/packages/special/lib/Numeric/GSL/Special/Trig.hs index 4b7ae67..91c264a 100644 --- a/packages/special/lib/Numeric/GSL/Special/Trig.hs +++ b/packages/special/lib/Numeric/GSL/Special/Trig.hs | |||
@@ -19,12 +19,17 @@ module Numeric.GSL.Special.Trig( | |||
19 | , Numeric.GSL.Special.Trig.cos | 19 | , Numeric.GSL.Special.Trig.cos |
20 | , hypot_e | 20 | , hypot_e |
21 | , hypot | 21 | , hypot |
22 | , complex_sin_e | ||
23 | , complex_cos_e | ||
24 | , complex_logsin_e | ||
22 | , sinc_e | 25 | , sinc_e |
23 | , sinc | 26 | , sinc |
24 | , lnsinh_e | 27 | , lnsinh_e |
25 | , lnsinh | 28 | , lnsinh |
26 | , lncosh_e | 29 | , lncosh_e |
27 | , lncosh | 30 | , lncosh |
31 | , polar_to_rect | ||
32 | , rect_to_polar | ||
28 | , sin_err_e | 33 | , sin_err_e |
29 | , cos_err_e | 34 | , cos_err_e |
30 | , angle_restrict_symm | 35 | , angle_restrict_symm |
@@ -61,16 +66,16 @@ hypot :: Double -> Double -> Double | |||
61 | hypot = gsl_sf_hypot | 66 | hypot = gsl_sf_hypot |
62 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double | 67 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double |
63 | 68 | ||
64 | complex_sin_e :: Double -> Double -> Ptr () -> (Double,Double) | 69 | complex_sin_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
65 | complex_sin_e zr zi szr = createSFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi szr | 70 | complex_sin_e zr zi = create2SFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi |
66 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_sin_e" gsl_sf_complex_sin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | 71 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_sin_e" gsl_sf_complex_sin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt |
67 | 72 | ||
68 | complex_cos_e :: Double -> Double -> Ptr () -> (Double,Double) | 73 | complex_cos_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
69 | complex_cos_e zr zi czr = createSFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi czr | 74 | complex_cos_e zr zi = create2SFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi |
70 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_cos_e" gsl_sf_complex_cos_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | 75 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_cos_e" gsl_sf_complex_cos_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt |
71 | 76 | ||
72 | complex_logsin_e :: Double -> Double -> Ptr () -> (Double,Double) | 77 | complex_logsin_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
73 | complex_logsin_e zr zi lszr = createSFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi lszr | 78 | complex_logsin_e zr zi = create2SFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi |
74 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_logsin_e" gsl_sf_complex_logsin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | 79 | foreign import ccall SAFE_CHEAP "gsl_sf_complex_logsin_e" gsl_sf_complex_logsin_e :: Double -> Double -> Ptr () -> Ptr () -> IO CInt |
75 | 80 | ||
76 | sinc_e :: Double -> (Double,Double) | 81 | sinc_e :: Double -> (Double,Double) |
@@ -97,12 +102,12 @@ lncosh :: Double -> Double | |||
97 | lncosh = gsl_sf_lncosh | 102 | lncosh = gsl_sf_lncosh |
98 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double | 103 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double |
99 | 104 | ||
100 | polar_to_rect :: Double -> Double -> Ptr () -> (Double,Double) | 105 | polar_to_rect :: Double -> Double -> ((Double,Double),(Double,Double)) |
101 | polar_to_rect r theta x = createSFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta x | 106 | polar_to_rect r theta = create2SFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta |
102 | foreign import ccall SAFE_CHEAP "gsl_sf_polar_to_rect" gsl_sf_polar_to_rect :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | 107 | foreign import ccall SAFE_CHEAP "gsl_sf_polar_to_rect" gsl_sf_polar_to_rect :: Double -> Double -> Ptr () -> Ptr () -> IO CInt |
103 | 108 | ||
104 | rect_to_polar :: Double -> Double -> Ptr () -> (Double,Double) | 109 | rect_to_polar :: Double -> Double -> ((Double,Double),(Double,Double)) |
105 | rect_to_polar x y r = createSFR "rect_to_polar" $ gsl_sf_rect_to_polar x y r | 110 | rect_to_polar x y = create2SFR "rect_to_polar" $ gsl_sf_rect_to_polar x y |
106 | foreign import ccall SAFE_CHEAP "gsl_sf_rect_to_polar" gsl_sf_rect_to_polar :: Double -> Double -> Ptr () -> Ptr () -> IO CInt | 111 | foreign import ccall SAFE_CHEAP "gsl_sf_rect_to_polar" gsl_sf_rect_to_polar :: Double -> Double -> Ptr () -> Ptr () -> IO CInt |
107 | 112 | ||
108 | sin_err_e :: Double -> Double -> (Double,Double) | 113 | sin_err_e :: Double -> Double -> (Double,Double) |