Using symbolic expressions with numpy arrays
Assume I have some symbolic function like
f(x,y,z)=x^2*sin(y)*z
Now I want to evaluate it numerically using numpy arrays, like
import numpy as np
X=np.linspace(-1,1,10)
Y,Z=X,X
f(X,Y,Z)
That produces an error
blabla...
NotImplementedError: Numpy arrays are not supported as arguments for
symbolic expressions
Can I convert a symbolic function into a python functions, so that I can us numpy with it? I fear there surely is a documented way to do to this somewhere - but I cannot find it.