Skip to content

Commit c17e21d

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent e2ccfaa commit c17e21d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/node_modules/@stdlib/lapack/base/dlapy2/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function dlapy2( x, y ) {
5656
if ( z === 0.0 ) {
5757
return w;
5858
}
59-
6059
return w * ( sqrt( 1.0 + abs2( z / w ) ) );
6160
}
6261

lib/node_modules/@stdlib/lapack/base/dlapy2/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tape( 'the function avoids underflow', function test( t ) {
118118
var h;
119119

120120
h = sqrt( pow( 1.0e-200, 2 ) + pow( 1e-200, 2 ) );
121-
t.strictEqual( h, 0.0, 'returns 0' );
121+
t.strictEqual( h, 0.0, 'returns expected value' );
122122

123123
h = dlapy2( 1.0e-200, 1.0e-200 );
124124
t.strictEqual( h, 1.414213562373095e-200, 'returns expected value' );

0 commit comments

Comments
 (0)