I am solving a large non-linear system of equations and I need a high degree of numerical precision. I am currently using sympy.lambdify
to convert symbolic expressions for the system of equations and its Jacobian into vectorized functions that take ndarrays as inputs and return an ndarray as outputs.
By default, lambdify returns an array with dtype of numpy.float64
. Is it possible to have it return an array with dtype numpy.float128
? Perhaps this requires the inputs to have dtype of numpy.float128
?