@LupoA A couple of issues probably mostly demonstrating my ignorance about mpmath. Looking at https://github.com/LupoA/rhos/blob/feature/GP/rhos/core.py
- Obviously (given your comment on line 50), the syntax using
mp. operations for every arithmetic operation is very cumbersome. What's the reasoning behind using that syntax? Based on my skim-read of the documentation, if a and b are both mpf objects (which most of your code is careful to ensure), then a - b should give the same result as mp.fsub(a, b). Being able to use standard arithmetic notation would make this vastly more readable.
- Is there a reason that on e.g. line 14, you use
mp.fadd(mpf(i), mpf(j)) rather than mpf(i + j), given that i and j are both integers so addition is exact?
@LupoA A couple of issues probably mostly demonstrating my ignorance about mpmath. Looking at https://github.com/LupoA/rhos/blob/feature/GP/rhos/core.py
mp.operations for every arithmetic operation is very cumbersome. What's the reasoning behind using that syntax? Based on my skim-read of the documentation, ifaandbare bothmpfobjects (which most of your code is careful to ensure), thena - bshould give the same result asmp.fsub(a, b). Being able to use standard arithmetic notation would make this vastly more readable.mp.fadd(mpf(i), mpf(j))rather thanmpf(i + j), given thatiandjare both integers so addition is exact?