Skip to content

fix: removes unused function from reimann-zeta #4822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions lib/node_modules/@stdlib/math/base/special/riemann-zeta/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,26 +574,6 @@ static double series( const double s ) {
return sum / ( TWO_N * stdlib_base_powm1( 2.0, 1.0 - s ) );
}

/**
* Evaluates the Riemann zeta function for an odd positive integer.
*
* @param s input value
* @return function value
*
* @example
* double out = zeta( 3.0 );
* // returns ~1.202
*/
static double zeta( const double s ) {
int32_t idx;

idx = ( s - 3 ) / 2;
if ( idx >= 56 ) {
return series( s );
}
return ODD_POSITIVE_INTEGERS[ idx ];
}

/**
* Evaluates the Riemann zeta function.
*
Expand Down
Loading