-
Notifications
You must be signed in to change notification settings - Fork 190
Drop private mpq class, use Rational's, provided by backend #691
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
Conversation
Solved issue with low precision for Fraction**float```python $ cat a.py import mpmath mpmath.mp.dps = 25 mpmath.mp.pretty = True r = mpmath.zeta(-10.5, (-8,3)) print(r) $ python a.py # ok (-0.01521913704446246609237979 + 29907.72510874248161608216j) $ MPMATH_NOGMPY=Y python a.py # wrong im? (-0.01521913704446246609237979 + 29907.72510874246440785656j) ``` |
31893fc
to
ddd46c8
Compare
5c78e94
to
f519d25
Compare
9dede89
to
c88cac7
Compare
This looks good to me. I don't know how significant the caching mechanism is but it does not look as if there are any places where |
@oscarbenjamin, I've some doubts about the ctx.mpq attribute. It's not documented, but apparently people discover it and use (e.g. #532). Maybe we should keep this and issue a deprecation warning before removing? |
e000e63
to
3fd10c6
Compare
3fd10c6
to
920d8ed
Compare
Oh, I didn't notice that this removes the |
mpq is a special attribute for the MPContext() only.
Slightly better API? |
Uh oh!
There was an error while loading. Please reload this page.