Skip to content

Commit a02ce47

Browse files
chore: change according to code review
--- 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: passed - 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: 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 79a33ee commit a02ce47

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/math/base/special/fast/hypotf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ var h = hypotf( -5.0, 12.0 );
6262
- For a sufficiently large `x` and/or `y`, computing the hypotenuse will overflow.
6363

6464
```javascript
65-
var h = hypotf( 1.0e154, 1.0e154 );
65+
var h = hypotf( 1.0e38, 1.0e38 );
6666
// returns Infinity
6767
```
6868

6969
Similarly, for sufficiently small `x` and/or `y`, computing the hypotenuse will underflow.
7070

7171
```javascript
72-
var h = hypotf( 1e-200, 1.0e-200 );
72+
var h = hypotf( 1.0e-45, 1.0e-45 );
7373
// returns 0.0
7474
```
7575

lib/node_modules/@stdlib/math/base/special/fast/hypotf/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
13.0
2222

2323
// For a sufficiently large `x` and/or `y`, the function overflows:
24-
> h = {{alias}}( 1.0e154, 1.0e154 )
24+
> h = {{alias}}( 1.0e38, 1.0e38 )
2525
Infinity
2626

2727
// For sufficiently small `x` and/or `y`, the function underflows:
28-
> h = {{alias}}( 1e-200, 1.0e-200 )
28+
> h = {{alias}}( 1.0e-45, 1.0e-45 )
2929
0.0
3030

3131
See Also

lib/node_modules/@stdlib/math/base/special/fast/hypotf/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ tape( 'the function computes the hypotenuse (canonical inputs)', function test(
8282
});
8383

8484
tape( 'the function can overflow', function test( t ) {
85-
var h = hypotf( 1.0e308, 1.0e308 );
85+
var h = hypotf( 1.0e38, 1.0e38 );
8686
t.strictEqual( h, PINF, 'returns expected value' );
8787
t.end();
8888
});
8989

9090
tape( 'the function can underflow', function test( t ) {
91-
var h = hypotf( 1.0e-200, 1.0e-200 );
91+
var h = hypotf( 1.0e-45, 1.0e-45 );
9292
t.strictEqual( h, 0.0, 'returns expected value' );
9393
t.end();
9494
});

lib/node_modules/@stdlib/math/base/special/fast/hypotf/test/test.native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ tape( 'the function computes the hypotenuse (canonical inputs)', opts, function
9191
});
9292

9393
tape( 'the function can overflow', opts, function test( t ) {
94-
var h = hypotf( 1.0e308, 1.0e308 );
94+
var h = hypotf( 1.0e38, 1.0e38 );
9595
t.strictEqual( h, PINF, 'returns expected value' );
9696
t.end();
9797
});
9898

9999
tape( 'the function can underflow', opts, function test( t ) {
100-
var h = hypotf( 1.0e-200, 1.0e-200 );
100+
var h = hypotf( 1.0e-45, 1.0e-45 );
101101
t.strictEqual( h, 0.0, 'returns expected value' );
102102
t.end();
103103
});

0 commit comments

Comments
 (0)