diff --git a/CHANGELOG.md b/CHANGELOG.md index c72ae51fe..234522b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-12-11) +## Unreleased (2024-12-13)
@@ -2685,6 +2685,7 @@ A total of 5 people contributed to this release. Thank you to the following cont
+- [`195f3ee`](https://github.com/stdlib-js/stdlib/commit/195f3eeb93f855e75880ad14e7166b77abdd4283) - **refactor:** use stdlib constant in `math/base/special/riemann-zeta` [(#3320)](https://github.com/stdlib-js/stdlib/pull/3320) _(by Gunj Joshi)_ - [`1f3190b`](https://github.com/stdlib-js/stdlib/commit/1f3190b7d1100f318ff2677fff12cb0d072f9b09) - **docs:** add missing `f` suffixes and `stdbool` header in `math/base/assert/is-oddf` [(#3457)](https://github.com/stdlib-js/stdlib/pull/3457) _(by Gunj Joshi)_ - [`bf5643f`](https://github.com/stdlib-js/stdlib/commit/bf5643fb1a3f32a60903d8e210f71571e609119f) - **docs:** update related packages sections [(#3404)](https://github.com/stdlib-js/stdlib/pull/3404) _(by stdlib-bot)_ - [`ecd017d`](https://github.com/stdlib-js/stdlib/commit/ecd017d9c921c2412fe61af9a129884e0c1e85b6) - **feat:** add `math/base/assert/is-oddf` [(#3125)](https://github.com/stdlib-js/stdlib/pull/3125) _(by Gururaj Gurram, Gunj Joshi, stdlib-bot)_ diff --git a/base/special/riemann-zeta/include/stdlib/math/base/special/riemann_zeta.h b/base/special/riemann-zeta/include/stdlib/math/base/special/riemann_zeta.h index eace13489..008b698f4 100644 --- a/base/special/riemann-zeta/include/stdlib/math/base/special/riemann_zeta.h +++ b/base/special/riemann-zeta/include/stdlib/math/base/special/riemann_zeta.h @@ -29,7 +29,7 @@ extern "C" { /** * Evaluates the Riemann zeta function. */ -double stdlib_base_zeta( const double x ); +double stdlib_base_zeta( const double s ); #ifdef __cplusplus } diff --git a/base/special/riemann-zeta/lib/main.js b/base/special/riemann-zeta/lib/main.js index 12301ff93..eae5aadcc 100644 --- a/base/special/riemann-zeta/lib/main.js +++ b/base/special/riemann-zeta/lib/main.js @@ -49,6 +49,7 @@ var TWO_PI = require( '@stdlib/constants/float64/two-pi' ); var SQRT_EPSILON = require( '@stdlib/constants/float64/sqrt-eps' ); var LN_SQRT_TWO_PI = require( '@stdlib/constants/float64/ln-sqrt-two-pi' ); var MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-factorial' ); +var FLOAT64_MAX_LN = require( '@stdlib/constants/float64/max-ln' ); var ODD_POSITIVE_INTEGERS = require( './odd_positive_integers.json' ); var EVEN_NONNEGATIVE_INTEGERS = require( './even_nonnegative_integers.json' ); var BERNOULLI = require( './bernoulli.json' ); @@ -63,7 +64,7 @@ var rateval6 = require( './rational_p6q6.js' ); // VARIABLES // var MAX_BERNOULLI_2N = 129; -var MAX_LN = 709; // TODO: consider making external constant +var MAX_LN = floor( FLOAT64_MAX_LN ); var Y1 = 1.2433929443359375; var Y3 = 0.6986598968505859375;