Skip to content

Commit 92a2eb0

Browse files
committed
Rename package variables
1 parent 77e0122 commit 92a2eb0

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

lib/node_modules/@stdlib/math/base/tools/continued-fraction/lib/basic.js

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

2323
var abs = require( '@stdlib/math/base/special/abs' );
24-
var TOLERANCE = require( '@stdlib/constants/math/float64-eps' );
25-
var TINY = require( '@stdlib/constants/math/float32-smallest-normal' );
24+
var EPS = require( '@stdlib/constants/math/float64-eps' );
25+
var FLOAT32_SMALLEST_NORMAL = require( '@stdlib/constants/math/float32-smallest-normal' );
2626

2727

2828
// VARIABLES //
@@ -63,7 +63,7 @@ function continuedFractionA( gen, factor, maxIter ) {
6363
f = v[ 1 ];
6464
a0 = v[ 0 ];
6565
if ( f === 0 ) {
66-
f = TINY;
66+
f = FLOAT32_SMALLEST_NORMAL;
6767
}
6868
C = f;
6969
D = 0.0;
@@ -73,11 +73,11 @@ function continuedFractionA( gen, factor, maxIter ) {
7373
if ( v ) {
7474
D = v[ 1 ] + ( v[ 0 ] * D );
7575
if ( D === 0.0 ) {
76-
D = TINY;
76+
D = FLOAT32_SMALLEST_NORMAL;
7777
}
7878
C = v[ 1 ] + ( v[ 0 ] / C );
7979
if ( C === 0.0 ) {
80-
C = TINY;
80+
C = FLOAT32_SMALLEST_NORMAL;
8181
}
8282
D = 1.0 / D;
8383
delta = C * D;
@@ -117,7 +117,7 @@ function continuedFractionB( gen, factor, maxIter ) {
117117
v = gen();
118118
f = v[ 1 ];
119119
if ( f === 0.0 ) {
120-
f = TINY;
120+
f = FLOAT32_SMALLEST_NORMAL;
121121
}
122122
C = f;
123123
D = 0.0;
@@ -126,11 +126,11 @@ function continuedFractionB( gen, factor, maxIter ) {
126126
if ( v ) {
127127
D = v[ 1 ] + ( v[ 0 ] * D );
128128
if ( D === 0.0 ) {
129-
D = TINY;
129+
D = FLOAT32_SMALLEST_NORMAL;
130130
}
131131
C = v[ 1 ] + ( v[ 0 ] / C );
132132
if ( C === 0.0 ) {
133-
C = TINY;
133+
C = FLOAT32_SMALLEST_NORMAL;
134134
}
135135
D = 1.0 / D;
136136
delta = C * D;
@@ -180,7 +180,7 @@ function continuedFraction( generator, options ) {
180180
if ( arguments.length > 1 ) {
181181
opts = options;
182182
}
183-
eps = opts.tolerance || TOLERANCE;
183+
eps = opts.tolerance || EPS;
184184
maxIter = opts.maxIter || MAX_ITER;
185185

186186
if ( opts.keep ) {

lib/node_modules/@stdlib/math/base/tools/continued-fraction/lib/generators.js

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

2323
var abs = require( '@stdlib/math/base/special/abs' );
24-
var TOLERANCE = require( '@stdlib/constants/math/float64-eps' );
25-
var TINY = require( '@stdlib/constants/math/float32-smallest-normal' );
24+
var FLOAT32_SMALLEST_NORMAL = require( '@stdlib/constants/math/float32-smallest-normal' );
25+
var EPS = require( '@stdlib/constants/math/float64-eps' );
2626

2727

2828
// VARIABLES //
@@ -65,7 +65,7 @@ function continuedFractionA( gen, factor, maxIter ) {
6565
f = v[ 1 ];
6666
a0 = v[ 0 ];
6767
if ( f === 0.0 ) {
68-
f = TINY;
68+
f = FLOAT32_SMALLEST_NORMAL;
6969
}
7070
C = f;
7171
D = 0;
@@ -75,11 +75,11 @@ function continuedFractionA( gen, factor, maxIter ) {
7575
if ( v ) {
7676
D = v[ 1 ] + ( v[ 0 ] * D );
7777
if ( D === 0.0 ) {
78-
D = TINY;
78+
D = FLOAT32_SMALLEST_NORMAL;
7979
}
8080
C = v[ 1 ] + ( v[ 0 ] / C );
8181
if ( C === 0.0 ) {
82-
C = TINY;
82+
C = FLOAT32_SMALLEST_NORMAL;
8383
}
8484
D = 1.0 / D;
8585
delta = C * D;
@@ -92,11 +92,11 @@ function continuedFractionA( gen, factor, maxIter ) {
9292
if ( v ) {
9393
D = v[ 1 ] + ( v[ 0 ] * D );
9494
if ( D === 0.0 ) {
95-
D = TINY;
95+
D = FLOAT32_SMALLEST_NORMAL;
9696
}
9797
C = v[ 1 ] + ( v[ 0 ] / C );
9898
if ( C === 0.0 ) {
99-
C = TINY;
99+
C = FLOAT32_SMALLEST_NORMAL;
100100
}
101101
D = 1.0 / D;
102102
delta = C * D;
@@ -138,7 +138,7 @@ function continuedFractionB( gen, factor, maxIter ) {
138138
v = ( isgenerator ) ? gen.next().value : gen();
139139
f = v[ 1 ];
140140
if ( f === 0.0 ) {
141-
f = TINY;
141+
f = FLOAT32_SMALLEST_NORMAL;
142142
}
143143
C = f;
144144
D = 0.0;
@@ -148,11 +148,11 @@ function continuedFractionB( gen, factor, maxIter ) {
148148
if ( v ) {
149149
D = v[ 1 ] + ( v[ 0 ] * D );
150150
if ( D === 0.0 ) {
151-
D = TINY;
151+
D = FLOAT32_SMALLEST_NORMAL;
152152
}
153153
C = v[ 1 ] + ( v[ 0 ] / C );
154154
if ( C === 0.0 ) {
155-
C = TINY;
155+
C = FLOAT32_SMALLEST_NORMAL;
156156
}
157157
D = 1.0 / D;
158158
delta = C * D;
@@ -165,11 +165,11 @@ function continuedFractionB( gen, factor, maxIter ) {
165165
if ( v ) {
166166
D = v[ 1 ] + ( v[ 0 ] * D );
167167
if ( D === 0.0 ) {
168-
D = TINY;
168+
D = FLOAT32_SMALLEST_NORMAL;
169169
}
170170
C = v[ 1 ] + ( v[ 0 ] / C );
171171
if ( C === 0.0 ) {
172-
C = TINY;
172+
C = FLOAT32_SMALLEST_NORMAL;
173173
}
174174
D = 1.0 / D;
175175
delta = C * D;
@@ -220,8 +220,8 @@ function continuedFraction( generator, options ) {
220220
if ( arguments.length > 1 ) {
221221
opts = options;
222222
}
223-
eps = opts.tolerance || TOLERANCE;
224223
maxIter = opts.maxIter || MAX_ITER;
224+
eps = opts.tolerance || EPS;
225225

226226
if ( opts.keep ) {
227227
return continuedFractionB( generator, eps, maxIter );

lib/node_modules/@stdlib/math/base/tools/continued-fraction/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242

4343
// MODULES //
4444

45-
var hasGeneratorsSupport = require( '@stdlib/assert/has-generator-support' );
45+
var hasGeneratorSupport = require( '@stdlib/assert/has-generator-support' );
4646
var generator = require( './generators.js' );
4747
var basic = require( './basic.js' );
4848

4949

5050
// MAIN //
5151

5252
var continuedFraction;
53-
if ( hasGeneratorsSupport() ) {
53+
if ( hasGeneratorSupport() ) {
5454
continuedFraction = generator;
5555
} else {
5656
continuedFraction = basic;

lib/node_modules/@stdlib/math/base/tools/sum-series/lib/basic.js

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

2323
var abs = require( '@stdlib/math/base/special/abs' );
24-
var TOLERANCE = require( '@stdlib/constants/math/float64-eps' );
24+
var EPS = require( '@stdlib/constants/math/float64-eps' );
2525

2626

2727
// VARIABLES //
@@ -66,7 +66,7 @@ function sumSeries( generator, options ) {
6666
if ( arguments.length > 1 ) {
6767
opts = options;
6868
}
69-
tolerance = opts.tolerance || TOLERANCE;
69+
tolerance = opts.tolerance || EPS;
7070
counter = opts.maxTerms || MAX_TERMS;
7171
result = opts.initialValue || 0;
7272

lib/node_modules/@stdlib/math/base/tools/sum-series/lib/generators.js

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

2323
var abs = require( '@stdlib/math/base/special/abs' );
24-
var TOLERANCE = require( '@stdlib/constants/math/float64-eps' );
24+
var EPS = require( '@stdlib/constants/math/float64-eps' );
2525

2626

2727
// VARIABLES //
@@ -66,7 +66,7 @@ function sumSeries( generator, options ) {
6666
if ( arguments.length > 1 ) {
6767
opts = options;
6868
}
69-
tolerance = opts.tolerance || TOLERANCE;
69+
tolerance = opts.tolerance || EPS;
7070
counter = opts.maxTerms || MAX_TERMS;
7171
result = opts.initialValue || 0;
7272

lib/node_modules/@stdlib/math/base/tools/sum-series/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141

4242
// MODULES //
4343

44-
var hasGeneratorsSupport = require( '@stdlib/assert/has-generator-support' );
44+
var hasGeneratorSupport = require( '@stdlib/assert/has-generator-support' );
4545
var generator = require( './generators.js' );
4646
var basic = require( './basic.js' );
4747

4848

4949
// MAIN //
5050

5151
var sumSeries;
52-
if ( hasGeneratorsSupport() ) {
52+
if ( hasGeneratorSupport() ) {
5353
sumSeries = generator;
5454
} else {
5555
sumSeries = basic;

0 commit comments

Comments
 (0)