Skip to content

Commit 25dd8e1

Browse files
authored
bench: use powf in lucasf
PR-URL: #9193 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 34719c7 commit 25dd8e1

File tree

1 file changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/lucasf/benchmark

1 file changed

+2
-3
lines changed

lib/node_modules/@stdlib/math/base/special/lucasf/benchmark/benchmark.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var bench = require( '@stdlib/bench' );
2424
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2525
var roundf = require( '@stdlib/math/base/special/roundf' );
26-
var pow = require( '@stdlib/math/base/special/pow' );
26+
var powf = require( '@stdlib/math/base/special/powf' );
2727
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2828
var PHI = require( '@stdlib/constants/float32/phi' );
2929
var zeros = require( '@stdlib/array/base/zeros' );
@@ -68,8 +68,7 @@ bench( pkg+'::analytic', function benchmark( b ) {
6868
});
6969

7070
function lucasf( n ) {
71-
// TODO: replace with `powf` when available
72-
return roundf( pow( PHI, n ) );
71+
return roundf( powf( PHI, n ) );
7372
}
7473

7574
b.tic();

0 commit comments

Comments
 (0)