ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 16 Oct 2011 00:39:28 -0500Using symbolic expressions with numpy arrayshttp://ask.sagemath.org/question/8383/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.XaverSun, 16 Oct 2011 00:39:28 -0500http://ask.sagemath.org/question/8383/