Skip to content

Commit 2c85b22

Browse files
committed
docs: add comment on different tolerance
1 parent 37b3254 commit 2c85b22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/node_modules/@stdlib/math/base/special/riemann-zeta/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ tape( 'the function handles negative integer values which are larger in magnitud
163163
s = -259;
164164
v = zeta( s );
165165
delta = abs( v - expected );
166-
tol = 656.0 * EPS * abs( expected );
166+
tol = 352.0 * EPS * abs( expected );
167167

168168
t.ok( delta <= tol, 'within tolerance. s: '+s+'. v: '+v+'. E: '+expected+' Δ: '+delta+'. tol: '+tol );
169169

lib/node_modules/@stdlib/math/base/special/riemann-zeta/test/test.native.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ tape( 'the function handles negative integer values which are larger in magnitud
172172
s = -259;
173173
v = zeta( s );
174174
delta = abs( v - expected );
175+
176+
// 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
175177
tol = 656.0 * EPS * abs( expected );
176178

177179
t.ok( delta <= tol, 'within tolerance. s: '+s+'. v: '+v+'. E: '+expected+' Δ: '+delta+'. tol: '+tol );

0 commit comments

Comments
 (0)