Skip to content

Commit

Permalink
Special cases of riemannXi
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed Sep 16, 2023
1 parent bedabaa commit e8a5603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -4413,6 +4413,8 @@ function dirichletEta( x ) { return mul( zeta(x), sub( 1, pow( 2, sub(1,x) ) ) )

function riemannXi( x ) {

if ( isZero(x) || isUnity(x) ) return isComplex(x) ? complex(.5) : .5;

var half = div( x, 2 );

return mul( half, sub(x,1), pow( pi, neg(half) ), gamma(half), zeta(x) );
Expand Down
2 changes: 2 additions & 0 deletions src/functions/zeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ function dirichletEta( x ) { return mul( zeta(x), sub( 1, pow( 2, sub(1,x) ) ) )

function riemannXi( x ) {

if ( isZero(x) || isUnity(x) ) return isComplex(x) ? complex(.5) : .5;

var half = div( x, 2 );

return mul( half, sub(x,1), pow( pi, neg(half) ), gamma(half), zeta(x) );
Expand Down

0 comments on commit e8a5603

Please sign in to comment.