Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
lambdify precision loss with module=mpmath from high-precision Floats #8818
Floats with more than 16 digits are converted to double precision somewhere.
The help string for
I haven't figured out how to look at the actual code yet, but somewhere something is being converted to double-precision (which might be fine for module=numpy but should not happen here).
referenced this issue
Jan 13, 2015
Tracked down a bit: lambdify.py line 376 calls python's builtin
Perhaps this is a design decision of
If you check the history of lambdify, someone refactored it long back and added the "modules" support. I personally never understood why the sympy or mpmath modules are necessary at all, because evalf and subs already give that functionality. I'd be fine with removing them because I've never heard of a use case.