Navigation

Source code for sympy.printing.lambdarepr

from__future__importprint_function,divisionfrom.strimportStrPrinterfromsympy.utilitiesimportdefault_sort_keydef_find_first_symbol(expr):foratominexpr.atoms():ifatom.is_Symbol:returnatomraiseValueError('expression must contain a Symbol: %r'%expr)