These are chat archives for symengine/symengine
@ngoldbaum, just replacing the symbol will not be enough. You will have to replace calls to sympy functions with calls to symengine functions. For example,
try: from symengine import sin except ImportError: from sympy import sin
SymEngine only has a few functions compared to SymPy. What functionality from SymPy are you using?
I haven't implemented derivative yet.
One option, when initializing the PyFunctionClass object (which has a pointer to a python function) we can call the derivative of it with general symbols. Like
besselk(x1, x2) and get the derivative with respect to the first symbol and second symbol stored in the PyFunctionClass object. Later, when we want to get the derivative of a particular instance, we calculate the derivative using the stored objects.
Second option, call derivative on the instance when needed