Generalized zeta function cutoff causes discontinuity

Open
#488 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
backend

Research direction

Start by reproducing the Julia 1.11.4 example with SpecialFunctions v2.5.0 and trace the zeta(s, z) path where the Euler-Maclaurin cutoff determines the initial sum. Compare values across the reported boundary; done means the discontinuity is removed and zeta(-13+7im, 0.5) is consistent with the expected value.

Written by the indexing model from the issue text.

Description

Version Information:
Julia 1.11.4
SpecialFunctions v2.5.0

zeta(s, z) gives incorrect values in the region $\Re (z) \geq 7 + \Re (s - 1) + |\Im (s) |$. For example:

julia> zeta(-13+7im, 0.5) # should be ~350.218774132674 + 259.188383123717im
-3371.4397140865763 + 2764.0891272966132im

The function jumps sharply at the boundary of the affected region and no longer behaves as expected. You can see the effects in these plots (using z=0.5):

Image

If my understanding is correct, the Euler-Maclaurin expansion used should be well-defined for $\Re(s) \gt -17$ or so. However, I think the initial sum is prematurely truncated to zero terms when the cutoff is checked.

Dominant language
Julia
Stars
384
Forks
115
Avg merge
2d 9h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaMath/SpecialFunctions.jl

All issues in JuliaMath/SpecialFunctions.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.