-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Doctests for: fix polylog evalf #18386
Comments
This comment has been minimized.
This comment has been minimized.
Upstream: Reported upstream. Developers acknowledge bug. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, in a later stable release. |
Dependencies: #21034 |
Reviewer: Paul Masson |
Author: Ralf Stephan |
comment:6
Ralf, there was a typo in the description of #21034 pointing to #18368 rather than this ticket. I'm finding this behavior odd:
This doesn't look fixed upstream to me: The doctest in |
comment:7
Polylog has a branch point/discontinuity at arguments (2,1). Anyway, we're just taking what arb is giving us:
This is very sensible because if you need the exact value say so, and if you need an inexact value to 53 (or any) digits the result cannot be given in that precision so it's NaN. I'll concede that, similar to #19439 it may be desired to return the symbolic NaN. |
Changed author from Ralf Stephan to none |
comment:8
Replying to @paulmasson:
Evalf does return a numeric value, too:
so, together with my previous answer I think this ticket can be closed. |
comment:19
We depend on #23077 and pynac-0.7.8 for improved handling of complex floats. |
Changed upstream from Not yet reported upstream; Will do shortly. to none |
comment:21
Now that all dependencies are merged, let the patchbots test it and please review. |
comment:22
See #23565 for some changes to the behavior of polylog. Are those changes improvements? |
comment:23
The biggest mystery here to me is how pynac is being able to use arb... |
comment:24
the doctests added here, with correct (no |
Changed reviewer from Paul Masson to Paul Masson, Dima Pasechnik |
comment:25
Replying to @dimpase:
Pynac calls Sage's arb interface via the Python C API. |
comment:28
Just rebasing. Nothing changed. New commits:
|
Changed branch from u/rws/18386-2 to u/fbissey/18386-2 |
Changed branch from u/fbissey/18386-2 to |
The
polylog
function (from Pynac) treats1.0
like1
and does not immediatelyevalf
with some numeric arguments.What makes
polylog
different is that the Sagepolylog
has no special value logic and calls Pynac'sLi_eval
for everything. This handles special values (incorrectly if an arg is FP) and sends everything else back with.hold()
. So you needN()
to get FP results that are not special. With FP Pynac is called which then calls Sage/mpmath. But this then bombs with FP args.Depends on #22969
Depends on #23077
Depends on #23134
CC: @kiwifb
Component: symbolics
Keywords: pynac special
Author: Ralf Stephan
Branch/Commit:
59d4b29
Reviewer: Paul Masson, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/18386
The text was updated successfully, but these errors were encountered: