Cadabra
Computer algebra system for field theory problems
|
Variables | |
expr = cos(x)*sin(y) | |
f = lambdify([x,y], expr, "numpy") | |
xl = numpy.linspace(0, 3.14, 1000) | |
yl = numpy.linspace(0, 3.14, 1000) | |
X | |
Y | |
F = numpy.vectorize(f) | |
start = time.time() | |
q = F(X, Y) | |
end = time.time() | |
nevaluate.end = time.time() |
nevaluate.expr = cos(x)*sin(y) |
nevaluate.f = lambdify([x,y], expr, "numpy") |
nevaluate.F = numpy.vectorize(f) |
nevaluate.start = time.time() |
nevaluate.X |
nevaluate.xl = numpy.linspace(0, 3.14, 1000) |
nevaluate.Y |
nevaluate.yl = numpy.linspace(0, 3.14, 1000) |