-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
zetaderiv: numerically unstable #20127
Comments
Commit: |
New commits:
|
comment:2
Looks fine, can you please add a doctest? |
comment:3
In principle I could, yes. However, the simplest (reliable) doctest I can construct takes about 25 sec., and that's not really ideal. I'd really like to understand why this takes so much time. |
comment:4
Which code would that be? Have you tried callgrind? I tried to confirm the random behaviour of the above but the first 16 tries all gave False. Do you have a reliable example? |
comment:5
Replying to @rwst:
Could you try it with the following expression? This is the original one which brought me to this error. If it works (which is rarely; maybe one out of 20 times on my laptop here), it takes several seconds.
|
comment:6
I get 10 times immediately False with develop. I can even do
|
comment:7
I think the difference to your result is that I had a command |
comment:8
Replying to @behackl:
returns
Seems like I am lucky to get that much exceptions ;) |
comment:10
The exception happens when executing However what happens with the original case is that in |
comment:11
Coincidentally, this solves my original problem. However, I still think that the fact that this
is both very slow and raises the Is it possible to use a numerically more stable version of the derivative of the zeta function? Maybe someone knowing more about this numerical stuff could help with this. |
comment:12
Change of title and component suggested so interested people find it better. |
This comment has been minimized.
This comment has been minimized.
comment:14
Arb can compute derivatives of the zeta function without difficulty. E.g. with my own python-flint interface, I can do
which takes 0.1 milliseconds. This would be easier to wrap with a Sage wrapper for Arb power series in place, but it should not be too hard to do directly either: see In the left half plane, It's a bit worrying that
Are there other Sage functions that treat intervals as carelessly? |
The implementation of the derivative of the zeta function
zetaderiv
is numerically unstable and very slow (for large negative values):Could either the current implementation be improved or an alternative numerical implementation be used?
This also causes errors when testing relations like
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
The text was updated successfully, but these errors were encountered: