def jscode(expr, assign_to=None, **settings):
 return JavascriptCodePrinter(settings).doprint(expr, assign_to)

def jscode ( expr , assign_to = None , ** settings ) : return JavascriptCodePrinter ( settings ) . doprint ( expr , assign_to )
converts an expr to a string of javascript code parameters expr : expr a sympy expression to be converted .