lambdify

Can SymPy Lambdify translate core functions like Add and Mul?

Can SymPy Lambdify translate core functions like Add and Mul? Question: My goal is to evaluate a basic symbolic equation such as ad(b + c) with my own custom implementaions of multiply and addition. I’m trying to use lambdify to translate the two core SymPy functions (Add and Mul) with my own functions, but I …

Total answers: 2

TypeError: unhashable type 'numpy.ndarray' followed by SympifyError

TypeError: unhashable type 'numpy.ndarray' followed by SympifyError Question: I am following the steps on https://www.sympy.org/scipy-2017-codegen-tutorial/notebooks/22-lambdify.html in order to produce a plot of a surface. The example shown on the link works perfectly to me. Now, the problem appears to me when trying to produce a plot of my own: I define my functions also making …

Total answers: 1

Python – Sympy – Solving equations numerically for multiple parameters in a grid

Python – Sympy – Solving equations numerically for multiple parameters in a grid Question: A given equation depends on an unknown variable (y) and a set of parameters. I would like to numerically solve for y, given each element of a grid with values of the parameters. A simplified example of my attempted solution is …

Total answers: 2