2222
2323var resolve = require ( 'path' ) . resolve ;
2424var tape = require ( 'tape' ) ;
25+ var NINF = require ( '@stdlib/constants/float32/ninf' ) ;
26+ var PINF = require ( '@stdlib/constants/float32/pinf' ) ;
2527var isnanf = require ( '@stdlib/math/base/assert/is-nanf' ) ;
26- var isAlmostSameValue = require ( '@stdlib/number/float32/base/assert/is-almost-same-value' ) ;
2728var isPositiveZero = require ( '@stdlib/math/base/assert/is-positive-zero' ) ;
28- var PINF = require ( '@stdlib/constants/float32/pinf' ) ;
29- var NINF = require ( '@stdlib/constants/float32/ninf' ) ;
3029var tryRequire = require ( '@stdlib/utils/try-require' ) ;
3130var f32 = require ( '@stdlib/number/float64/base/to-float32' ) ;
31+ var isAlmostSameValue = require ( '@stdlib/number/float32/base/assert/is-almost-same-value' ) ;
32+
3233
3334// FIXTURES //
3435
@@ -126,7 +127,6 @@ tape( 'the function handles representative boundary values across intervals', op
126127 ] ;
127128 var i ;
128129 var y ;
129- var e ;
130130 for ( i = 0 ; i < values . length ; i ++ ) {
131131 y = erfcinvf ( values [ i ] ) ;
132132 t . ok ( ! isnanf ( y ) || values [ i ] < 0.0003 || values [ i ] > 1.9999 , 'x: ' + values [ i ] + ', y: ' + y ) ;
@@ -142,21 +142,21 @@ tape( 'handles very small positive values', opts, function test( t ) {
142142 f32 ( 1e-40 )
143143 ] ;
144144 var i ;
145+ var y
145146 for ( i = 0 ; i < values . length ; i ++ ) {
146- var y = erfcinvf ( values [ i ] ) ;
147+ y = erfcinvf ( values [ i ] ) ;
147148 t . ok ( y > 0.0 , 'x: ' + values [ i ] + ', y: ' + y ) ;
148149 }
149150 t . end ( ) ;
150151} ) ;
151152
152-
153153tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[0.0002,0.25]`' , opts , function test ( t ) {
154154 var expected ;
155+ var ulps ;
155156 var x ;
156157 var y ;
157158 var i ;
158159 var e ;
159- var ulps ;
160160
161161 expected = x5 . expected ;
162162 x = x5 . x ;
@@ -172,11 +172,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
172172
173173tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[0.25,0.5]`' , opts , function test ( t ) {
174174 var expected ;
175+ var ulps ;
175176 var x ;
176177 var y ;
177178 var i ;
178179 var e ;
179- var ulps ;
180180
181181 expected = x2 . expected ;
182182 x = x2 . x ;
@@ -192,11 +192,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
192192
193193tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[0.5,1.5]`' , opts , function test ( t ) {
194194 var expected ;
195+ var ulps ;
195196 var x ;
196197 var y ;
197198 var i ;
198199 var e ;
199- var ulps ;
200200
201201 expected = x1 . expected ;
202202 x = x1 . x ;
@@ -212,11 +212,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
212212
213213tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[1.5,1.75]`' , opts , function test ( t ) {
214214 var expected ;
215+ var ulps ;
215216 var x ;
216217 var y ;
217218 var i ;
218219 var e ;
219- var ulps ;
220220
221221 expected = x3 . expected ;
222222 x = x3 . x ;
@@ -232,11 +232,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
232232
233233tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[1.75,1.9998]`' , opts , function test ( t ) {
234234 var expected ;
235+ var ulps ;
235236 var x ;
236237 var y ;
237238 var i ;
238239 var e ;
239- var ulps ;
240240
241241 expected = x4 . expected ;
242242 x = x4 . x ;
@@ -252,11 +252,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
252252
253253tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[1.9998,1.9999..8]`' , opts , function test ( t ) {
254254 var expected ;
255+ var ulps ;
255256 var x ;
256257 var y ;
257258 var i ;
258259 var e ;
259- var ulps ;
260260
261261 expected = x6 . expected ;
262262 x = x6 . x ;
@@ -272,11 +272,11 @@ tape( 'the function evaluates the inverse complementary error function for `x` o
272272
273273tape ( 'the function evaluates the inverse complementary error function for `x` on the interval `[1.9999..8,2]`' , opts , function test ( t ) {
274274 var expected ;
275+ var ulps ;
275276 var x ;
276277 var y ;
277278 var i ;
278279 var e ;
279- var ulps ;
280280
281281 expected = x7 . expected ;
282282 x = x7 . x ;
0 commit comments