Skip to content

Commit

Permalink
Fix recursion error on unit circle
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmasson committed Mar 18, 2024
1 parent 61f3b17 commit 36a5d0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -4633,7 +4633,7 @@ function polylog( n, x, tolerance=1e-10 ) {

if ( isEqualTo(n,-1) ) return div( x, mul( sub(1,x), sub(1,x) ) );

if ( abs(x) >= 1 ) {
if ( abs(x) > 1 ) {

var twoPiI = complex(0,2*pi);

Expand Down
2 changes: 1 addition & 1 deletion src/functions/zeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function polylog( n, x, tolerance=1e-10 ) {

if ( isEqualTo(n,-1) ) return div( x, mul( sub(1,x), sub(1,x) ) );

if ( abs(x) >= 1 ) {
if ( abs(x) > 1 ) {

var twoPiI = complex(0,2*pi);

Expand Down

0 comments on commit 36a5d0e

Please sign in to comment.