Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Numexpr must be string argument to lambdify #9334
See this stackoverflow post http://stackoverflow.com/questions/29807509/sympy-lambdify-with-numexpr-and-sqrt
The docs for
Here's the docs:
Help on function lambdify in module sympy.utilities.lambdify: lambdify(args, expr, modules=None, printer=None, use_imps=True, dummify=True) Returns a lambda function for fast calculation of numerical values. If not specified differently by the user, SymPy functions are replaced as far as possible by either python-math, numpy (if available) or mpmath functions - exactly in this order. To change this behavior, the "modules" argument can be used. It accepts: - the strings "math", "mpmath", "numpy", "numexpr", "sympy" - any modules (e.g. math) - dictionaries that map names of sympy functions to arbitrary functions - lists that contain a mix of the arguments above, with higher priority given to entries appearing first.