Skip to content

zetaderiv: numerically unstable #20127

Open
@behackl

Description

@behackl

The implementation of the derivative of the zeta function zetaderiv is numerically unstable and very slow (for large negative values):

sage: zetaderiv(1, CIF(-600))
Traceback (most recent call last):
...
NoConvergence: zeta: too much cancellation
sage: timeit('zetaderiv(1, CIF(-500))')
5 loops, best of 3: 3.08 s per loop

Could either the current implementation be improved or an alternative numerical implementation be used?


This also causes errors when testing relations like

sage: bool(gamma(k*pi) * zetaderiv(1, k*pi*I)/log(2)^2 == 0)
Traceback (most recent call last):
...
NoConvergence: zeta: too much cancellation

CC: @cheuberg @dkrenn @rwst

Component: numerical

Author: Benjamin Hackl

Branch/Commit: u/behackl/symbolic/test_relation/noconvergence @ 4ddf10c

Issue created by migration from https://trac.sagemath.org/ticket/20127

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions