@doctest_depends_on(exe=('f2py', 'gfortran'), modules=('numpy',))
def binary_function(symfunc, expr, **kwargs):
 binary = autowrap(expr, **kwargs)
 return implemented_function(symfunc, binary)

@ doctest_depends_on ( exe = ( 'f2py' , 'gfortran' ) , modules = ( 'numpy' , ) ) def binary_function ( symfunc , expr , ** kwargs ) : binary = autowrap ( expr , ** kwargs ) return implemented_function ( symfunc , binary )
returns a sympy function with expr as binary implementation this is a convenience function that automates the steps needed to autowrap the sympy expression and attaching it to a function object with implemented_function() .