Sympy function pointer