Skip to content

Commit 5c1678e

Browse files
committed
Auto-generated commit
1 parent 027fc65 commit 5c1678e

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ A total of 74 issues were closed in this release:
709709

710710
<details>
711711

712+
- [`2e80e3a`](https://github.com/stdlib-js/stdlib/commit/2e80e3a075fbafef274e94d203b693ec03e65fec) - **test:** use powf in negafibonaccif [(#9192)](https://github.com/stdlib-js/stdlib/pull/9192) _(by Sagar Ratna Chaudhary)_
712713
- [`25dd8e1`](https://github.com/stdlib-js/stdlib/commit/25dd8e1fedfc74790135de764cebd854ca6a2fa2) - **bench:** use powf in lucasf [(#9193)](https://github.com/stdlib-js/stdlib/pull/9193) _(by Sagar Ratna Chaudhary)_
713714
- [`b50060a`](https://github.com/stdlib-js/stdlib/commit/b50060a7145e4f34152573dae067322c16d40b6c) - **feat:** update `math/base/special` TypeScript declarations [(#9117)](https://github.com/stdlib-js/stdlib/pull/9117) _(by stdlib-bot)_
714715
- [`95c53cf`](https://github.com/stdlib-js/stdlib/commit/95c53cf567009172f1105fda7228717e609e7ff5) - **docs:** improve doctests for complex number instances in `math/base/special/csignumf` [(#9042)](https://github.com/stdlib-js/stdlib/pull/9042) _(by Prajjwal Bajpai, Athan Reines)_

base/special/negafibonaccif/benchmark/benchmark.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
2424
var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
2525
var roundf = require( './../../../../base/special/roundf' );
2626
var sqrtf = require( './../../../../base/special/sqrtf' );
27-
var pow = require( './../../../../base/special/pow' );
27+
var powf = require( './../../../../base/special/powf' );
2828
var absf = require( './../../../../base/special/absf' );
2929
var isnanf = require( './../../../../base/assert/is-nanf' );
3030
var Float32Array = require( '@stdlib/array/float32' );
@@ -71,8 +71,7 @@ bench( pkg+'::analytic', function benchmark( b ) {
7171
function negafibonaccif( n ) {
7272
var an = absf( n );
7373

74-
// TODO: replace with `powf` when available
75-
return pow( -1.0, an+1 ) * roundf( pow( PHI, an ) / SQRT_5 );
74+
return powf( -1.0, an + 1.0 ) * roundf( powf( PHI, an ) / SQRT_5 );
7675
}
7776

7877
x = discreteUniform( 100, -36, 0 );

base/special/negafibonaccif/test/test.js

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

2323
var tape = require( 'tape' );
2424
var isnanf = require( './../../../../base/assert/is-nanf' );
25-
var pow = require( './../../../../base/special/pow' );
25+
var powf = require( './../../../../base/special/powf' );
2626
var absf = require( './../../../../base/special/absf' );
2727
var NINF = require( '@stdlib/constants/float32/ninf' );
2828
var fibonaccif = require( './../../../../base/special/fibonaccif' );
@@ -89,9 +89,7 @@ tape( 'the function returns the nth negaFibonacci number (Fibonacci relationship
8989
var i;
9090
for ( i = 0; i > -37; i-- ) {
9191
v = negafibonaccif( i );
92-
93-
// TODO: replace with `powf` when available
94-
f = pow( -1.0, absf(i)+1 ) * fibonaccif( absf(i) );
92+
f = powf( -1.0, absf(i) + 1.0 ) * fibonaccif( absf(i) );
9593
t.strictEqual( v, f, 'returns expected value' );
9694
}
9795
t.end();

base/special/negafibonaccif/test/test.native.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
2525
var isnanf = require( './../../../../base/assert/is-nanf' );
26-
var pow = require( './../../../../base/special/pow' );
26+
var powf = require( './../../../../base/special/powf' );
2727
var absf = require( './../../../../base/special/absf' );
2828
var fibonaccif = require( './../../../../base/special/fibonaccif' );
2929
var tryRequire = require( '@stdlib/utils/try-require' );
@@ -79,9 +79,7 @@ tape( 'the function returns the nth negaFibonacci number (Fibonacci relationship
7979
var i;
8080
for ( i = 0; i > -37; i-- ) {
8181
v = negafibonaccif( i );
82-
83-
// TODO: replace with `powf` when available
84-
f = pow( -1.0, absf(i) + 1 ) * fibonaccif( absf(i) );
82+
f = powf( -1.0, absf(i) + 1.0 ) * fibonaccif( absf(i) );
8583
t.strictEqual( v, f, 'returns expected value' );
8684
}
8785
t.end();

0 commit comments

Comments
 (0)