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

Polylog inaccurate for s very close to an integer and z outside of the unit circle #634

Open
Gattocrucco opened this issue Jul 23, 2022 · 0 comments

Comments

@Gattocrucco
Copy link

Some examples:

import mpmath as mp
def check(s, z):
    pl1 = mp.polylog(s, z)
    print(pl1.real)
    with mp.workdps(32):
        pl2 = mp.polylog(s, z)
        print(pl2.real)
check(1+1e-15, -2) # bad
check(1, -2 + 1e-8j) # ok (s exactly an integer)
check(1+1e-15, -0.5 + 1e-8j) # ok (|z| < 1)
-1.0986328125
-1.0986122886681101262610921881491
-1.09861228866811
-1.0986122886681096969508007924781
-0.405465108108164
-0.40546510810816446598993214576279

Older polylog issues: #473, #505

mpmath version: 1.2.1

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

No branches or pull requests

1 participant