You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/base/special/tan/test/test.native.js
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,8 @@ tape( 'the function computes the tangent (large positive values)', opts, functio
141
141
142
142
for(i=0;i<x.length;i++){
143
143
y=tan(x[i]);
144
+
145
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -157,6 +159,8 @@ tape( 'the function computes the tangent (large negative values)', opts, functio
157
159
158
160
for(i=0;i<x.length;i++){
159
161
y=tan(x[i]);
162
+
163
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -173,6 +177,8 @@ tape( 'the function computes the tangent (medium positive values)', opts, functi
173
177
174
178
for(i=0;i<x.length;i++){
175
179
y=tan(x[i]);
180
+
181
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -189,6 +195,8 @@ tape( 'the function computes the tangent (medium negative values)', opts, functi
189
195
190
196
for(i=0;i<x.length;i++){
191
197
y=tan(x[i]);
198
+
199
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -205,6 +213,8 @@ tape( 'the function computes the tangent (small positive values)', opts, functio
205
213
206
214
for(i=0;i<x.length;i++){
207
215
y=tan(x[i]);
216
+
217
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -221,6 +231,8 @@ tape( 'the function computes the tangent (small negative values)', opts, functio
221
231
222
232
for(i=0;i<x.length;i++){
223
233
y=tan(x[i]);
234
+
235
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
@@ -237,6 +249,8 @@ tape( 'the function computes the tangent (smaller values)', opts, function test(
237
249
238
250
for(i=0;i<x.length;i++){
239
251
y=tan(x[i]);
252
+
253
+
// NOTE: the tolerance here is larger than for the JavaScript implementation due to compiler optimizations which may be performed resulting in result divergence. For discussion, see https://github.com/stdlib-js/stdlib/pull/2298#discussion_r1624765205
0 commit comments