Drop private mpq class, use Rational's, provided by backend#691
Drop private mpq class, use Rational's, provided by backend#691skirpichev merged 5 commits intompmath:masterfrom
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.