Skip to content

Commit 4ae9a8a

Browse files
committed
chore: clean-up
--- 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: passed - task: lint_repl_help status: na - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent bf43e0d commit 4ae9a8a

4 files changed

Lines changed: 14 additions & 85 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,6 @@ int main( void ) {
179179

180180
<section class="related">
181181

182-
* * *
183-
184-
## See Also
185-
186182
</section>
187183

188184
<!-- /.related -->

lib/node_modules/@stdlib/math/base/special/atanhf/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
]
124124
}
125125
],
126-
"output_policy": "real_floating_point_and_generic",
127126
"returns": {
128127
"desc": "hyperbolic arctangent",
129128
"type": {
@@ -134,14 +133,14 @@
134133
}
135134
},
136135
"keywords": [
137-
"atanhf",
136+
"atanh",
138137
"hyperbolic",
139138
"inverse",
140139
"tangent",
141140
"tan"
142141
],
143142
"extra_keywords": [
144-
"math.atanhf"
143+
"math.atanh"
145144
]
146145
}
147146
}

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

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var abs = require( '@stdlib/math/base/special/abs' );
2524
var PINF = require( '@stdlib/constants/float32/pinf' );
2625
var NINF = require( '@stdlib/constants/float32/ninf' );
2726
var EPS = require( '@stdlib/constants/float32/eps' );
@@ -52,8 +51,6 @@ tape( 'main export is a function', function test( t ) {
5251

5352
tape( 'the function computes the hyperbolic arctangent (negative values)', function test( t ) {
5453
var expected;
55-
var delta;
56-
var tol;
5754
var x;
5855
var y;
5956
var i;
@@ -65,21 +62,13 @@ tape( 'the function computes the hyperbolic arctangent (negative values)', funct
6562
for ( i = 0; i < x.length; i++ ) {
6663
y = atanhf( x[ i ] );
6764
e = f32( expected[ i ] );
68-
if ( isAlmostSameValue( y, e, 4 ) ) {
69-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
70-
} else {
71-
delta = abs( y - e );
72-
tol = 1.3 * EPS * abs( e );
73-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
74-
}
65+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
7566
}
7667
t.end();
7768
});
7869

7970
tape( 'the function computes the hyperbolic arctangent (positive values)', function test( t ) {
8071
var expected;
81-
var delta;
82-
var tol;
8372
var x;
8473
var y;
8574
var i;
@@ -91,21 +80,13 @@ tape( 'the function computes the hyperbolic arctangent (positive values)', funct
9180
for ( i = 0; i < x.length; i++ ) {
9281
y = atanhf( x[ i ] );
9382
e = f32( expected[ i ] );
94-
if ( isAlmostSameValue( y, e, 4 ) ) {
95-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
96-
} else {
97-
delta = abs( y - e );
98-
tol = 1.3 * EPS * abs( e );
99-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
100-
}
83+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
10184
}
10285
t.end();
10386
});
10487

10588
tape( 'the function computes the hyperbolic arctangent (small negative)', function test( t ) {
10689
var expected;
107-
var delta;
108-
var tol;
10990
var x;
11091
var y;
11192
var i;
@@ -117,21 +98,13 @@ tape( 'the function computes the hyperbolic arctangent (small negative)', functi
11798
for ( i = 0; i < x.length; i++ ) {
11899
y = atanhf( x[ i ] );
119100
e = f32( expected[ i ] );
120-
if ( isAlmostSameValue( y, e, 4 ) ) {
121-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
122-
} else {
123-
delta = abs( y - e );
124-
tol = 1.0 * EPS * abs( e );
125-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
126-
}
101+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
127102
}
128103
t.end();
129104
});
130105

131106
tape( 'the function computes the hyperbolic arctangent (small positive)', function test( t ) {
132107
var expected;
133-
var delta;
134-
var tol;
135108
var x;
136109
var y;
137110
var i;
@@ -143,13 +116,7 @@ tape( 'the function computes the hyperbolic arctangent (small positive)', functi
143116
for ( i = 0; i < x.length; i++ ) {
144117
y = atanhf( x[i] );
145118
e = f32( expected[ i ] );
146-
if ( isAlmostSameValue( y, e, 4 ) ) {
147-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
148-
} else {
149-
delta = abs( y - e );
150-
tol = 1.0 * EPS * abs( e );
151-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
152-
}
119+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
153120
}
154121
t.end();
155122
});
@@ -170,7 +137,7 @@ tape( 'the function returns `NaN` if provided a value less than `-1`', function
170137
var v;
171138
var i;
172139

173-
for ( i = 0; i < 1e3; i++ ) {
140+
for ( i = 0; i < 1e2; i++ ) {
174141
v = -( randu() * 1.0e6 ) - ( 1.0 + EPS );
175142
t.strictEqual( isnanf( atanhf( v ) ), true, 'returns NaN when provided '+v );
176143
}
@@ -181,7 +148,7 @@ tape( 'the function returns `NaN` if provided a value greater than `1`', functio
181148
var v;
182149
var i;
183150

184-
for ( i = 0; i < 1e3; i++ ) {
151+
for ( i = 0; i < 1e2; i++ ) {
185152
v = ( randu() * 1.0e6 ) + 1.0 + EPS;
186153
t.strictEqual( isnanf( atanhf( v ) ), true, 'returns NaN when provided '+v );
187154
}

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

Lines changed: 6 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
25-
var abs = require( '@stdlib/math/base/special/abs' );
2625
var PINF = require( '@stdlib/constants/float32/pinf' );
2726
var NINF = require( '@stdlib/constants/float32/ninf' );
2827
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -61,8 +60,6 @@ tape( 'main export is a function', opts, function test( t ) {
6160

6261
tape( 'the function computes the hyperbolic arctangent (negative values)', opts, function test( t ) {
6362
var expected;
64-
var delta;
65-
var tol;
6663
var x;
6764
var y;
6865
var i;
@@ -74,21 +71,13 @@ tape( 'the function computes the hyperbolic arctangent (negative values)', opts,
7471
for ( i = 0; i < x.length; i++ ) {
7572
y = atanhf( x[ i ] );
7673
e = f32( expected[ i ] );
77-
if ( isAlmostSameValue( y, e, 4 ) ) {
78-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
79-
} else {
80-
delta = abs( y - e );
81-
tol = 1.3 * EPS * abs( e );
82-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
83-
}
74+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
8475
}
8576
t.end();
8677
});
8778

8879
tape( 'the function computes the hyperbolic arctangent (positive values)', opts, function test( t ) {
8980
var expected;
90-
var delta;
91-
var tol;
9281
var x;
9382
var y;
9483
var i;
@@ -100,21 +89,13 @@ tape( 'the function computes the hyperbolic arctangent (positive values)', opts,
10089
for ( i = 0; i < x.length; i++ ) {
10190
y = atanhf( x[ i ] );
10291
e = f32( expected[ i ] );
103-
if ( isAlmostSameValue( y, e, 4 ) ) {
104-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
105-
} else {
106-
delta = abs( y - e );
107-
tol = 1.3 * EPS * abs( e );
108-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
109-
}
92+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
11093
}
11194
t.end();
11295
});
11396

11497
tape( 'the function computes the hyperbolic arctangent (small negative)', opts, function test( t ) {
11598
var expected;
116-
var delta;
117-
var tol;
11899
var x;
119100
var y;
120101
var i;
@@ -126,21 +107,13 @@ tape( 'the function computes the hyperbolic arctangent (small negative)', opts,
126107
for ( i = 0; i < x.length; i++ ) {
127108
y = atanhf( x[ i ] );
128109
e = f32( expected[ i ] );
129-
if ( isAlmostSameValue( y, e, 4 ) ) {
130-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
131-
} else {
132-
delta = abs( y - e );
133-
tol = 1.0 * EPS * abs( e );
134-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
135-
}
110+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
136111
}
137112
t.end();
138113
});
139114

140115
tape( 'the function computes the hyperbolic arctangent (small positive)', opts, function test( t ) {
141116
var expected;
142-
var delta;
143-
var tol;
144117
var x;
145118
var y;
146119
var i;
@@ -152,13 +125,7 @@ tape( 'the function computes the hyperbolic arctangent (small positive)', opts,
152125
for ( i = 0; i < x.length; i++ ) {
153126
y = atanhf( x[i] );
154127
e = f32( expected[ i ] );
155-
if ( isAlmostSameValue( y, e, 4 ) ) {
156-
t.strictEqual( y, e, 'x: '+x[i]+'. E: '+e );
157-
} else {
158-
delta = abs( y - e );
159-
tol = 1.0 * EPS * abs( e );
160-
t.ok( delta <= tol, 'within tolerance. x: '+x[i]+'. y: '+y+'. E: '+e+'. Δ: '+delta+'. tol: '+tol+'.' );
161-
}
128+
t.strictEqual( isAlmostSameValue( y, e, 4 ), true, 'x: '+x[i]+'. E: '+e );
162129
}
163130
t.end();
164131
});
@@ -179,7 +146,7 @@ tape( 'the function returns `NaN` if provided a value less than `-1`', opts, fun
179146
var v;
180147
var i;
181148

182-
for ( i = 0; i < 1e3; i++ ) {
149+
for ( i = 0; i < 1e2; i++ ) {
183150
v = -( randu() * 1.0e6 ) - ( 1.0 + EPS );
184151
t.strictEqual( isnanf( atanhf( v ) ), true, 'returns NaN when provided '+v );
185152
}
@@ -190,7 +157,7 @@ tape( 'the function returns `NaN` if provided a value greater than `1`', opts, f
190157
var v;
191158
var i;
192159

193-
for ( i = 0; i < 1e3; i++ ) {
160+
for ( i = 0; i < 1e2; i++ ) {
194161
v = ( randu() * 1.0e6 ) + 1.0 + EPS;
195162
t.strictEqual( isnanf( atanhf( v ) ), true, 'returns NaN when provided '+v );
196163
}

0 commit comments

Comments
 (0)