@@ -24,7 +24,7 @@ var resolve = require( 'path' ).resolve;
2424var tape = require ( 'tape' ) ;
2525var isnanf = require ( '@stdlib/math/base/assert/is-nanf' ) ;
2626var lnf = require ( '@stdlib/math/base/special/lnf' ) ;
27- var pow = require ( '@stdlib/math/base/special/pow ' ) ;
27+ var powf = require ( '@stdlib/math/base/special/powf ' ) ;
2828var ulpdiff = require ( '@stdlib/number/float32/base/ulp-difference' ) ;
2929var f32 = require ( '@stdlib/number/float64/base/to-float32' ) ;
3030var PINF = require ( '@stdlib/constants/float32/pinf' ) ;
@@ -77,11 +77,10 @@ tape( 'the function returns `+infinity` when provided `0`', opts, function test(
7777} ) ;
7878
7979tape ( 'the function returns `+infinity` for x smaller than or equal to `-2^23`' , opts , function test ( t ) {
80- // TODO: Replace with `powf` once available:
81- var v = absgammalnf ( f32 ( - pow ( 2.0 , 23 ) ) ) ;
80+ var v = absgammalnf ( f32 ( - powf ( 2.0 , 23 ) ) ) ;
8281 t . strictEqual ( v , PINF , 'returns expected value' ) ;
8382
84- v = absgammalnf ( f32 ( - pow ( 2.0 , 24 ) ) ) ;
83+ v = absgammalnf ( f32 ( - powf ( 2.0 , 24 ) ) ) ;
8584 t . strictEqual ( v , PINF , 'returns expected value' ) ;
8685
8786 t . end ( ) ;
@@ -139,8 +138,7 @@ tape( 'the function evaluates the natural logarithm of the absolute value of the
139138 var x ;
140139 var v ;
141140
142- // TODO: Replace with `powf` once available:
143- x = f32 ( pow ( 2.0 , 27 ) ) ;
141+ x = f32 ( powf ( 2.0 , 27 ) ) ;
144142 v = absgammalnf ( x ) ;
145143 expected = f32 ( x * f32 ( lnf ( x ) - f32 ( 1.0 ) ) ) ;
146144 t . strictEqual ( v , expected , 'returns expected value' ) ;
0 commit comments