Skip to content

Commit 795b74a

Browse files
chore: update test tolerance
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent a138af7 commit 795b74a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

  • lib/node_modules/@stdlib/math/base/special/digammaf

lib/node_modules/@stdlib/math/base/special/digammaf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static float polyval_p( const float x ) {
105105
*
106106
* @example
107107
* float y = stdlib_base_digammaf( 1.0f );
108-
* // returns ~-0.577
108+
* // returns ~-0.577f
109109
*/
110110
float stdlib_base_digammaf( const float x ) {
111111
float rem;

lib/node_modules/@stdlib/math/base/special/digammaf/test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ tape( 'the function evaluates the digamma function (half-integers)', function te
9090
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
9191
} else {
9292
delta = absf( y - e );
93-
tol = 150.0 * EPS * absf( e );
93+
tol = 20.0 * EPS * absf( e );
9494
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
9595
}
9696
}
@@ -116,7 +116,7 @@ tape( 'the function computes the digamma function (positive values)', function t
116116
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
117117
} else {
118118
delta = absf( y - e );
119-
tol = 350.0 * EPS * absf( e );
119+
tol = 270.0 * EPS * absf( e );
120120
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
121121
}
122122
}
@@ -142,7 +142,7 @@ tape( 'the function computes the digamma function (small positive values)', func
142142
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
143143
} else {
144144
delta = absf( y - e );
145-
tol = 500.0 * EPS * absf( e );
145+
tol = 3.5 * EPS * absf( e );
146146
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
147147
}
148148
}
@@ -168,7 +168,7 @@ tape( 'the function computes the digamma function (large positive values)', func
168168
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
169169
} else {
170170
delta = absf( y - e );
171-
tol = 100.0 * EPS * absf( e );
171+
tol = EPS * absf( e );
172172
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
173173
}
174174
}
@@ -194,7 +194,7 @@ tape( 'the function evaluates the digamma function (small negative values)', fun
194194
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
195195
} else {
196196
delta = absf( y - e );
197-
tol = 150.0 * EPS * absf( e );
197+
tol = EPS * absf( e );
198198
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
199199
}
200200
}
@@ -220,7 +220,7 @@ tape( 'the function computes the digamma function (negative values)', function t
220220
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
221221
} else {
222222
delta = absf( y - e );
223-
tol = 500.0 * EPS * absf( e );
223+
tol = 60.0 * EPS * absf( e );
224224
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
225225
}
226226
}
@@ -246,7 +246,7 @@ tape( 'the function computes the digamma function (near integers)', function tes
246246
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
247247
} else {
248248
delta = absf( y - e );
249-
tol = 300.0 * EPS * absf( e );
249+
tol = 10.0 * EPS * absf( e );
250250
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
251251
}
252252
}
@@ -272,7 +272,7 @@ tape( 'the function evaluates the digamma function (very large values)', functio
272272
t.strictEqual( y, e, 'x: ' + x[ i ] + '. E: ' + e );
273273
} else {
274274
delta = absf( y - e );
275-
tol = 10.0 * EPS * absf( e );
275+
tol = EPS * absf( e );
276276
t.ok( delta <= tol, 'within tolerance. x: ' + x[ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' );
277277
}
278278
}

0 commit comments

Comments
 (0)