For a symbolic symbolic function, e.g.
x=symbols("x")
h=sin(x)
when you call
h.subs(x, mpf('1.0000000000000000000000000000000000000000000001'))
sympy returns a floating point number. The return value is not mpf.
Is there a convenient way to get sympy to evaluate symbolic standard functions (e.g., exponential and trigon functions) using arbitrary precision?
source
share