Skip to content

Commit fb45f8c

Browse files
committed
chore: stuff from code review
1 parent 4db54d0 commit fb45f8c

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
1919
-->
2020

21-
# acosd
21+
# acosdf
2222

2323
> Compute the [arccosine][arccosine] in degrees of a single-precision floating-point number.
2424
@@ -35,18 +35,18 @@ var acosdf = require( '@stdlib/math/base/special/acosdf' );
3535
Computes the [arccosine][arccosine] (in degrees) of a single-precision floating-point number.
3636

3737
```javascript
38-
var sqrt = require( '@stdlib/math/base/special/sqrt' );
38+
var sqrtf = require( '@stdlib/math/base/special/sqrtf' );
3939

4040
var v = acosdf( 0.0 );
4141
// returns 90.0
4242

4343
v = acosdf( 0.5 );
4444
// returns ~60.0
4545

46-
v = acosdf( sqrt( 2 ) / 2 );
46+
v = acosdf( sqrtf( 2 ) / 2 );
4747
// returns ~45.0
4848

49-
v = acosdf( sqrt( 3 ) / 2 );
49+
v = acosdf( sqrtf( 3 ) / 2 );
5050
// returns ~30.0
5151

5252
v = acosdf( NaN );

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--------
2020
> var y = {{alias}}( 0.0 )
2121
90.0
22-
> y = {{alias}}( {{alias:@stdlib/constants/float32/pi}}/6.0 )
22+
> y = {{alias}}( {{alias:@stdlib/constants/float32/pi}} / 6.0 )
2323
~58.43
2424
> y = {{alias}}( NaN )
2525
NaN

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @return arccosine (in degrees)
2828
*
2929
* @example
30-
* float v = stdlib_base_acosd( 0.0f );
30+
* float v = stdlib_base_acosdf( 0.0f );
3131
* // returns 90.0f
3232
*/
3333
float stdlib_base_acosdf( const float x ) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ tape( 'main export is a function', function test( t ) {
4444

4545
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
4646
var v = acosdf( NaN );
47-
t.equal( isnanf( v ), true, 'returns NaN' );
47+
t.equal( isnanf( v ), true, 'returns expected value' );
4848
t.end();
4949
});
5050

@@ -102,7 +102,7 @@ tape( 'the function returns `NaN` if provided a value less than `-1`', function
102102

103103
for ( i = 0; i < 1e3; i++ ) {
104104
v = -( randu() * 1.0e6 ) - ( 1.0 - EPS );
105-
t.equal( isnanf( acosdf( v ) ), true, 'returns NaN when provided '+v );
105+
t.equal( isnanf( acosdf( v ) ), true, 'returns expected value when provided '+v );
106106
}
107107
t.end();
108108
});
@@ -113,7 +113,7 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
113113

114114
for ( i = 0; i < 1e3; i++ ) {
115115
v = ( randu() * 1.0e6 ) + 1.0 + EPS;
116-
t.equal( isnanf( acosdf( v ) ), true, 'returns NaN when provided '+v );
116+
t.equal( isnanf( acosdf( v ) ), true, 'returns expected value when provided '+v );
117117
}
118118
t.end();
119119
});

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tape( 'main export is a function', opts, function test( t ) {
5353

5454
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
5555
var v = acosdf( NaN );
56-
t.equal( isnanf( v ), true, 'returns NaN' );
56+
t.equal( isnanf( v ), true, 'returns expected value' );
5757
t.end();
5858
});
5959

@@ -111,7 +111,7 @@ tape( 'the function returns `NaN` if provided a value less than `-1`', opts, fun
111111

112112
for ( i = 0; i < 1e3; i++ ) {
113113
v = -(randu()*1.0e6) - (1.0-EPS);
114-
t.equal( isnanf( acosdf( v ) ), true, 'returns NaN when provided '+v );
114+
t.equal( isnanf( acosdf( v ) ), true, 'returns expected value when provided '+v );
115115
}
116116
t.end();
117117
});
@@ -122,7 +122,7 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
122122

123123
for ( i = 0; i < 1e3; i++ ) {
124124
v = (randu()*1.0e6) + 1.0 + EPS;
125-
t.equal( isnanf( acosdf( v ) ), true, 'returns NaN when provided '+v );
125+
t.equal( isnanf( acosdf( v ) ), true, 'returns expected value when provided '+v );
126126
}
127127
t.end();
128128
});

0 commit comments

Comments
 (0)