Skip to content

Commit 9822a83

Browse files
authored
Apply suggestions from code review
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 0ba3ac6 commit 9822a83

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{{alias}}( n )
3-
Compute the nth Bernoulli number as a single-precision floating-point
3+
Computes the nth Bernoulli number as a single-precision floating-point
44
number.
55

66
If not provided a nonnegative integer value, the function returns `NaN`.

lib/node_modules/@stdlib/math/base/special/bernoullif/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// TypeScript Version: 4.1
2020

2121
/**
22-
* Compute the nth Bernoulli number as a single-precision floating-point number.
22+
* Computes the nth Bernoulli number as a single-precision floating-point number.
2323
*
2424
* @param n - the Bernoulli number to compute
2525
* @returns Bernoulli number

lib/node_modules/@stdlib/math/base/special/bernoullif/include/stdlib/math/base/special/bernoullif.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
#endif
3030

3131
/**
32-
* Computes the nth Bernoulli number.
32+
* Computes the nth Bernoulli number as a single-precision floating-point number.
3333
*/
3434
float stdlib_base_bernoullif( const int32_t n );
3535

lib/node_modules/@stdlib/math/base/special/bernoullif/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var MAX_BERNOULLI = 64|0; // asm type annotation
3737
// MAIN //
3838

3939
/**
40-
* Compute the nth Bernoulli number as a single-precision floating-point number.
40+
* Computes the nth Bernoulli number as a single-precision floating-point number.
4141
*
4242
* @param {NonNegativeInteger} n - the Bernoulli number to compute
4343
* @returns {number} Bernoulli number
@@ -93,9 +93,9 @@ function bernoullif( n ) {
9393
return 0.0;
9494
}
9595
if ( n > MAX_BERNOULLI ) {
96-
return ( ( n/2 ) & 1 ) ? PINF : NINF;
96+
return ( ( n / 2 ) & 1 ) ? PINF : NINF;
9797
}
98-
return float64ToFloat32( BERNOULLIF[ n/2 ] );
98+
return float64ToFloat32( BERNOULLIF[ n / 2 ] );
9999
}
100100

101101

lib/node_modules/@stdlib/math/base/special/bernoullif/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' );
2626
// MAIN //
2727

2828
/**
29-
* Compute the nth Bernoulli number as a single-precision floating-point number.
29+
* Computes the nth Bernoulli number as a single-precision floating-point number.
3030
*
3131
* @param {NonNegativeInteger} n - the Bernoulli number to compute
3232
* @returns {number} Bernoulli number

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static const float bernoulli_value[ 33 ] = {
6161
static const int32_t MAX_BERNOULLI = 64;
6262

6363
/**
64-
* Compute the nth Bernoulli number as a single-precision floating-point number.
64+
* Computes the nth Bernoulli number as a single-precision floating-point number.
6565
*
6666
* @param n input value
6767
* @return output value

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tape( 'if provided a negative number, the function returns `NaN`', function test
4545
var v;
4646
var i;
4747

48-
t.strictEqual( isnanf( bernoullif( -3.14 ) ), true, 'returns NaN' );
48+
t.strictEqual( isnanf( bernoullif( -3.14 ) ), true, 'returns expected value' );
4949

5050
for ( i = -1; i > -50; i-- ) {
5151
v = bernoullif( i );
@@ -89,7 +89,7 @@ tape( 'the function returns the nth Bernoulli number for even numbers', function
8989
var i;
9090
for ( i = 0; i < 66; i += 2 ) {
9191
v = bernoullif( i );
92-
t.strictEqual( v, float64ToFloat32( BERNOULLIF[ i/2 ] ), 'returns the '+i+'th Bernoulli number' );
92+
t.strictEqual( v, float64ToFloat32( BERNOULLIF[ i / 2 ] ), 'returns the '+i+'th Bernoulli number' );
9393
}
9494
t.end();
9595
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tape( 'if provided a negative number, the function returns `NaN`', opts, functio
5858

5959
for ( i = -1; i > -50; i-- ) {
6060
v = bernoullif( i );
61-
t.strictEqual( isnanf( v ), true, 'returns NaN when provided ' + i );
61+
t.strictEqual( isnanf( v ), true, 'returns expected value when provided ' + i );
6262
}
6363
t.end();
6464
});
@@ -86,7 +86,7 @@ tape( 'the function returns the nth Bernoulli number for even numbers', opts, fu
8686
var i;
8787
for ( i = 0; i < 66; i += 2 ) {
8888
v = bernoullif( i );
89-
t.strictEqual( v, float64ToFloat32( BERNOULLIF[ i/2 ] ), 'returns the '+i+'th Bernoulli number' );
89+
t.strictEqual( v, float64ToFloat32( BERNOULLIF[ i / 2 ] ), 'returns the '+i+'th Bernoulli number' );
9090
}
9191
t.end();
9292
});

0 commit comments

Comments
 (0)