Skip to content
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

Fix premature truncation of the recurrence sum in zeta(s,z). #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quytelda
Copy link
Contributor

As descriped in issue #488, skipping the recurrence sum or truncating early causes the function to break inside a region determined by shape of the cutoff. This rewrite also fixes another bug I encountered: sometimes the zero denominator term wasn't actually skipped, which caused sporadic failures.

This plot shows an example of how the error is improved relative to $(2^s-1)\zeta(s)$ in the affected area:
relerr

The accuracy still isn't perfect but the major breakage is fixed. Hopefully it can be improved in the future.

Skipping the recurrence sum or truncating early causes the function to
break inside a region determined by shape of the cutoff.
Copy link

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.10%. Comparing base (f8fd782) to head (5268c7c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #489      +/-   ##
==========================================
- Coverage   94.11%   94.10%   -0.01%     
==========================================
  Files          14       14              
  Lines        2905     2902       -3     
==========================================
- Hits         2734     2731       -3     
  Misses        171      171              
Flag Coverage Δ
unittests 94.10% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant