Skip to content

Commit 580b0b3

Browse files
committed
docs: resolve NaN return values in maxabsn and minabsn examples
--- 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: passed - 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: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent a51fa22 commit 580b0b3

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

lib/node_modules/@stdlib/math/base/special/maxabsn/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ var opts = {
107107
var x = uniform( 100, -500.0, 500.0, opts );
108108
var y = uniform( 100, -500.0, 500.0, opts );
109109

110-
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, maxabsn );
110+
function wrapper( a, b ) {
111+
return maxabsn( a, b );
112+
}
113+
114+
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );
111115
```
112116

113117
</section>

lib/node_modules/@stdlib/math/base/special/maxabsn/examples/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ var opts = {
2828
var x = uniform( 100, -500.0, 500.0, opts );
2929
var y = uniform( 100, -500.0, 500.0, opts );
3030

31-
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, maxabsn );
31+
function wrapper( a, b ) {
32+
return maxabsn( a, b );
33+
}
34+
35+
logEachMap( 'maxabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );

lib/node_modules/@stdlib/math/base/special/minabsn/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ var opts = {
107107
var x = uniform( 100, -500.0, 500.0, opts );
108108
var y = uniform( 100, -500.0, 500.0, opts );
109109

110-
logEachMap( 'minabsn(%0.4f,%0.4f) = %0.4f', x, y, minabsn );
110+
function wrapper( a, b ) {
111+
return minabsn( a, b );
112+
}
113+
114+
logEachMap( 'minabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );
111115
```
112116

113117
</section>

lib/node_modules/@stdlib/math/base/special/minabsn/examples/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ var opts = {
2828
var x = uniform( 100, -500.0, 500.0, opts );
2929
var y = uniform( 100, -500.0, 500.0, opts );
3030

31-
logEachMap( 'minabsn(%0.4f,%0.4f) = %0.4f', x, y, minabsn );
31+
function wrapper( a, b ) {
32+
return minabsn( a, b );
33+
}
34+
35+
logEachMap( 'minabsn(%0.4f,%0.4f) = %0.4f', x, y, wrapper );

0 commit comments

Comments
 (0)