Skip to content

Commit 195f3ee

Browse files
authored
refactor: use stdlib constant in math/base/special/riemann-zeta
PR-URL: #3320 Reviewed-by: Athan Reines <[email protected]>
1 parent 23842bb commit 195f3ee

File tree

2 files changed

+3
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/riemann-zeta

2 files changed

+3
-2
lines changed

lib/node_modules/@stdlib/math/base/special/riemann-zeta/include/stdlib/math/base/special/riemann_zeta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
/**
3030
* Evaluates the Riemann zeta function.
3131
*/
32-
double stdlib_base_zeta( const double x );
32+
double stdlib_base_zeta( const double s );
3333

3434
#ifdef __cplusplus
3535
}

lib/node_modules/@stdlib/math/base/special/riemann-zeta/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ var TWO_PI = require( '@stdlib/constants/float64/two-pi' );
4949
var SQRT_EPSILON = require( '@stdlib/constants/float64/sqrt-eps' );
5050
var LN_SQRT_TWO_PI = require( '@stdlib/constants/float64/ln-sqrt-two-pi' );
5151
var MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-factorial' );
52+
var FLOAT64_MAX_LN = require( '@stdlib/constants/float64/max-ln' );
5253
var ODD_POSITIVE_INTEGERS = require( './odd_positive_integers.json' );
5354
var EVEN_NONNEGATIVE_INTEGERS = require( './even_nonnegative_integers.json' );
5455
var BERNOULLI = require( './bernoulli.json' );
@@ -63,7 +64,7 @@ var rateval6 = require( './rational_p6q6.js' );
6364
// VARIABLES //
6465

6566
var MAX_BERNOULLI_2N = 129;
66-
var MAX_LN = 709; // TODO: consider making external constant
67+
var MAX_LN = floor( FLOAT64_MAX_LN );
6768
var Y1 = 1.2433929443359375;
6869
var Y3 = 0.6986598968505859375;
6970

0 commit comments

Comments
 (0)