diff options
author | Alberto Ruiz <aruiz@um.es> | 2012-03-13 14:51:12 +0100 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2012-03-13 14:51:12 +0100 |
commit | 072055e1658fa6fd64a4462b6a243ec0f5e5cdb4 (patch) | |
tree | 09e3a46185a1ee231cdddab6955437a2b0ead601 /packages/special/lib/Numeric/GSL/Special/Trig.hs | |
parent | 9c4a8a37291f902312215452d0bdd9ad95408ae9 (diff) |
revert to SAFE_CHEAP macro, unsafe by default
Diffstat (limited to 'packages/special/lib/Numeric/GSL/Special/Trig.hs')
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Trig.hs | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/packages/special/lib/Numeric/GSL/Special/Trig.hs b/packages/special/lib/Numeric/GSL/Special/Trig.hs index 6180144..43fdc95 100644 --- a/packages/special/lib/Numeric/GSL/Special/Trig.hs +++ b/packages/special/lib/Numeric/GSL/Special/Trig.hs | |||
@@ -44,100 +44,100 @@ import Numeric.GSL.Special.Internal | |||
44 | 44 | ||
45 | sin_e :: Double -> (Double,Double) | 45 | sin_e :: Double -> (Double,Double) |
46 | sin_e x = createSFR "sin_e" $ gsl_sf_sin_e x | 46 | sin_e x = createSFR "sin_e" $ gsl_sf_sin_e x |
47 | foreign import ccall unsafe "gsl_sf_sin_e" gsl_sf_sin_e :: Double -> Ptr () -> IO CInt | 47 | foreign import ccall SAFE_CHEAP "gsl_sf_sin_e" gsl_sf_sin_e :: Double -> Ptr () -> IO CInt |
48 | 48 | ||
49 | sin :: Double -> Double | 49 | sin :: Double -> Double |
50 | sin = gsl_sf_sin | 50 | sin = gsl_sf_sin |
51 | foreign import ccall unsafe "gsl_sf_sin" gsl_sf_sin :: Double -> Double | 51 | foreign import ccall SAFE_CHEAP "gsl_sf_sin" gsl_sf_sin :: Double -> Double |
52 | 52 | ||
53 | cos_e :: Double -> (Double,Double) | 53 | cos_e :: Double -> (Double,Double) |
54 | cos_e x = createSFR "cos_e" $ gsl_sf_cos_e x | 54 | cos_e x = createSFR "cos_e" $ gsl_sf_cos_e x |
55 | foreign import ccall unsafe "gsl_sf_cos_e" gsl_sf_cos_e :: Double -> Ptr () -> IO CInt | 55 | foreign import ccall SAFE_CHEAP "gsl_sf_cos_e" gsl_sf_cos_e :: Double -> Ptr () -> IO CInt |
56 | 56 | ||
57 | cos :: Double -> Double | 57 | cos :: Double -> Double |
58 | cos = gsl_sf_cos | 58 | cos = gsl_sf_cos |
59 | foreign import ccall unsafe "gsl_sf_cos" gsl_sf_cos :: Double -> Double | 59 | foreign import ccall SAFE_CHEAP "gsl_sf_cos" gsl_sf_cos :: Double -> Double |
60 | 60 | ||
61 | hypot_e :: Double -> Double -> (Double,Double) | 61 | hypot_e :: Double -> Double -> (Double,Double) |
62 | hypot_e x y = createSFR "hypot_e" $ gsl_sf_hypot_e x y | 62 | hypot_e x y = createSFR "hypot_e" $ gsl_sf_hypot_e x y |
63 | foreign import ccall unsafe "gsl_sf_hypot_e" gsl_sf_hypot_e :: Double -> Double -> Ptr () -> IO CInt | 63 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot_e" gsl_sf_hypot_e :: Double -> Double -> Ptr () -> IO CInt |
64 | 64 | ||
65 | hypot :: Double -> Double -> Double | 65 | hypot :: Double -> Double -> Double |
66 | hypot = gsl_sf_hypot | 66 | hypot = gsl_sf_hypot |
67 | foreign import ccall unsafe "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double | 67 | foreign import ccall SAFE_CHEAP "gsl_sf_hypot" gsl_sf_hypot :: Double -> Double -> Double |
68 | 68 | ||
69 | complex_sin_e :: Double -> Double -> ((Double,Double),(Double,Double)) | 69 | complex_sin_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
70 | complex_sin_e zr zi = create2SFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi | 70 | complex_sin_e zr zi = create2SFR "complex_sin_e" $ gsl_sf_complex_sin_e zr zi |
71 | foreign import ccall unsafe "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 |
72 | 72 | ||
73 | complex_cos_e :: Double -> Double -> ((Double,Double),(Double,Double)) | 73 | complex_cos_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
74 | complex_cos_e zr zi = create2SFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi | 74 | complex_cos_e zr zi = create2SFR "complex_cos_e" $ gsl_sf_complex_cos_e zr zi |
75 | foreign import ccall unsafe "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 |
76 | 76 | ||
77 | complex_logsin_e :: Double -> Double -> ((Double,Double),(Double,Double)) | 77 | complex_logsin_e :: Double -> Double -> ((Double,Double),(Double,Double)) |
78 | complex_logsin_e zr zi = create2SFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi | 78 | complex_logsin_e zr zi = create2SFR "complex_logsin_e" $ gsl_sf_complex_logsin_e zr zi |
79 | foreign import ccall unsafe "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 |
80 | 80 | ||
81 | sinc_e :: Double -> (Double,Double) | 81 | sinc_e :: Double -> (Double,Double) |
82 | sinc_e x = createSFR "sinc_e" $ gsl_sf_sinc_e x | 82 | sinc_e x = createSFR "sinc_e" $ gsl_sf_sinc_e x |
83 | foreign import ccall unsafe "gsl_sf_sinc_e" gsl_sf_sinc_e :: Double -> Ptr () -> IO CInt | 83 | foreign import ccall SAFE_CHEAP "gsl_sf_sinc_e" gsl_sf_sinc_e :: Double -> Ptr () -> IO CInt |
84 | 84 | ||
85 | sinc :: Double -> Double | 85 | sinc :: Double -> Double |
86 | sinc = gsl_sf_sinc | 86 | sinc = gsl_sf_sinc |
87 | foreign import ccall unsafe "gsl_sf_sinc" gsl_sf_sinc :: Double -> Double | 87 | foreign import ccall SAFE_CHEAP "gsl_sf_sinc" gsl_sf_sinc :: Double -> Double |
88 | 88 | ||
89 | lnsinh_e :: Double -> (Double,Double) | 89 | lnsinh_e :: Double -> (Double,Double) |
90 | lnsinh_e x = createSFR "lnsinh_e" $ gsl_sf_lnsinh_e x | 90 | lnsinh_e x = createSFR "lnsinh_e" $ gsl_sf_lnsinh_e x |
91 | foreign import ccall unsafe "gsl_sf_lnsinh_e" gsl_sf_lnsinh_e :: Double -> Ptr () -> IO CInt | 91 | foreign import ccall SAFE_CHEAP "gsl_sf_lnsinh_e" gsl_sf_lnsinh_e :: Double -> Ptr () -> IO CInt |
92 | 92 | ||
93 | lnsinh :: Double -> Double | 93 | lnsinh :: Double -> Double |
94 | lnsinh = gsl_sf_lnsinh | 94 | lnsinh = gsl_sf_lnsinh |
95 | foreign import ccall unsafe "gsl_sf_lnsinh" gsl_sf_lnsinh :: Double -> Double | 95 | foreign import ccall SAFE_CHEAP "gsl_sf_lnsinh" gsl_sf_lnsinh :: Double -> Double |
96 | 96 | ||
97 | lncosh_e :: Double -> (Double,Double) | 97 | lncosh_e :: Double -> (Double,Double) |
98 | lncosh_e x = createSFR "lncosh_e" $ gsl_sf_lncosh_e x | 98 | lncosh_e x = createSFR "lncosh_e" $ gsl_sf_lncosh_e x |
99 | foreign import ccall unsafe "gsl_sf_lncosh_e" gsl_sf_lncosh_e :: Double -> Ptr () -> IO CInt | 99 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh_e" gsl_sf_lncosh_e :: Double -> Ptr () -> IO CInt |
100 | 100 | ||
101 | lncosh :: Double -> Double | 101 | lncosh :: Double -> Double |
102 | lncosh = gsl_sf_lncosh | 102 | lncosh = gsl_sf_lncosh |
103 | foreign import ccall unsafe "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double | 103 | foreign import ccall SAFE_CHEAP "gsl_sf_lncosh" gsl_sf_lncosh :: Double -> Double |
104 | 104 | ||
105 | polar_to_rect :: Double -> Double -> ((Double,Double),(Double,Double)) | 105 | polar_to_rect :: Double -> Double -> ((Double,Double),(Double,Double)) |
106 | polar_to_rect r theta = create2SFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta | 106 | polar_to_rect r theta = create2SFR "polar_to_rect" $ gsl_sf_polar_to_rect r theta |
107 | foreign import ccall unsafe "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 |
108 | 108 | ||
109 | rect_to_polar :: Double -> Double -> ((Double,Double),(Double,Double)) | 109 | rect_to_polar :: Double -> Double -> ((Double,Double),(Double,Double)) |
110 | rect_to_polar x y = create2SFR "rect_to_polar" $ gsl_sf_rect_to_polar x y | 110 | rect_to_polar x y = create2SFR "rect_to_polar" $ gsl_sf_rect_to_polar x y |
111 | foreign import ccall unsafe "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 |
112 | 112 | ||
113 | sin_err_e :: Double -> Double -> (Double,Double) | 113 | sin_err_e :: Double -> Double -> (Double,Double) |
114 | sin_err_e x dx = createSFR "sin_err_e" $ gsl_sf_sin_err_e x dx | 114 | sin_err_e x dx = createSFR "sin_err_e" $ gsl_sf_sin_err_e x dx |
115 | foreign import ccall unsafe "gsl_sf_sin_err_e" gsl_sf_sin_err_e :: Double -> Double -> Ptr () -> IO CInt | 115 | foreign import ccall SAFE_CHEAP "gsl_sf_sin_err_e" gsl_sf_sin_err_e :: Double -> Double -> Ptr () -> IO CInt |
116 | 116 | ||
117 | cos_err_e :: Double -> Double -> (Double,Double) | 117 | cos_err_e :: Double -> Double -> (Double,Double) |
118 | cos_err_e x dx = createSFR "cos_err_e" $ gsl_sf_cos_err_e x dx | 118 | cos_err_e x dx = createSFR "cos_err_e" $ gsl_sf_cos_err_e x dx |
119 | foreign import ccall unsafe "gsl_sf_cos_err_e" gsl_sf_cos_err_e :: Double -> Double -> Ptr () -> IO CInt | 119 | foreign import ccall SAFE_CHEAP "gsl_sf_cos_err_e" gsl_sf_cos_err_e :: Double -> Double -> Ptr () -> IO CInt |
120 | 120 | ||
121 | angle_restrict_symm_e :: Ptr Double -> CInt | 121 | angle_restrict_symm_e :: Ptr Double -> CInt |
122 | angle_restrict_symm_e = gsl_sf_angle_restrict_symm_e | 122 | angle_restrict_symm_e = gsl_sf_angle_restrict_symm_e |
123 | foreign import ccall unsafe "gsl_sf_angle_restrict_symm_e" gsl_sf_angle_restrict_symm_e :: Ptr Double -> CInt | 123 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm_e" gsl_sf_angle_restrict_symm_e :: Ptr Double -> CInt |
124 | 124 | ||
125 | angle_restrict_symm :: Double -> Double | 125 | angle_restrict_symm :: Double -> Double |
126 | angle_restrict_symm = gsl_sf_angle_restrict_symm | 126 | angle_restrict_symm = gsl_sf_angle_restrict_symm |
127 | foreign import ccall unsafe "gsl_sf_angle_restrict_symm" gsl_sf_angle_restrict_symm :: Double -> Double | 127 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm" gsl_sf_angle_restrict_symm :: Double -> Double |
128 | 128 | ||
129 | angle_restrict_pos_e :: Ptr Double -> CInt | 129 | angle_restrict_pos_e :: Ptr Double -> CInt |
130 | angle_restrict_pos_e = gsl_sf_angle_restrict_pos_e | 130 | angle_restrict_pos_e = gsl_sf_angle_restrict_pos_e |
131 | foreign import ccall unsafe "gsl_sf_angle_restrict_pos_e" gsl_sf_angle_restrict_pos_e :: Ptr Double -> CInt | 131 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos_e" gsl_sf_angle_restrict_pos_e :: Ptr Double -> CInt |
132 | 132 | ||
133 | angle_restrict_pos :: Double -> Double | 133 | angle_restrict_pos :: Double -> Double |
134 | angle_restrict_pos = gsl_sf_angle_restrict_pos | 134 | angle_restrict_pos = gsl_sf_angle_restrict_pos |
135 | foreign import ccall unsafe "gsl_sf_angle_restrict_pos" gsl_sf_angle_restrict_pos :: Double -> Double | 135 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos" gsl_sf_angle_restrict_pos :: Double -> Double |
136 | 136 | ||
137 | angle_restrict_symm_err_e :: Double -> (Double,Double) | 137 | angle_restrict_symm_err_e :: Double -> (Double,Double) |
138 | angle_restrict_symm_err_e theta = createSFR "angle_restrict_symm_err_e" $ gsl_sf_angle_restrict_symm_err_e theta | 138 | angle_restrict_symm_err_e theta = createSFR "angle_restrict_symm_err_e" $ gsl_sf_angle_restrict_symm_err_e theta |
139 | foreign import ccall unsafe "gsl_sf_angle_restrict_symm_err_e" gsl_sf_angle_restrict_symm_err_e :: Double -> Ptr () -> IO CInt | 139 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_symm_err_e" gsl_sf_angle_restrict_symm_err_e :: Double -> Ptr () -> IO CInt |
140 | 140 | ||
141 | angle_restrict_pos_err_e :: Double -> (Double,Double) | 141 | angle_restrict_pos_err_e :: Double -> (Double,Double) |
142 | angle_restrict_pos_err_e theta = createSFR "angle_restrict_pos_err_e" $ gsl_sf_angle_restrict_pos_err_e theta | 142 | angle_restrict_pos_err_e theta = createSFR "angle_restrict_pos_err_e" $ gsl_sf_angle_restrict_pos_err_e theta |
143 | foreign import ccall unsafe "gsl_sf_angle_restrict_pos_err_e" gsl_sf_angle_restrict_pos_err_e :: Double -> Ptr () -> IO CInt | 143 | foreign import ccall SAFE_CHEAP "gsl_sf_angle_restrict_pos_err_e" gsl_sf_angle_restrict_pos_err_e :: Double -> Ptr () -> IO CInt |