If I have: from sympy import Symbol, Integrate x = Symbol('x') f = x**2 + x g = Integrate(f, x) how can I apply g to a numpy array? In other words, how can I "numpify" the g expression, injecting in it x = numpy.linspace(1, 9, 9)? What would be even nicer would be to be able to retrieve a lambda using numpy functions for g as a function of x (that way I don't have the overhead of numpifying it each time I want to apply it to an array).
1More
Acerca de Pybonacci « Pybonacci - 0 views
1 - 5 of 5
Showing 20▼ items per page