dedalus.tools.parsing ===================== .. py:module:: dedalus.tools.parsing .. autoapi-nested-parse:: Tools for equation parsing. Module Contents --------------- .. py:function:: lambdify_functions(call, result) Convert math-style function definitions into lambda expressions. Pass other statements without modification. .. rubric:: Examples >>> lambdify_functions('f(x, y)', 'x*y') ('f', 'lambda x,y: x*y') >>> lambdify_functions('f', 'a*b') ('f', 'a*b') .. py:function:: split_call(call) Convert math-style function definitions into head and arguments. .. rubric:: Examples >>> split_call('f(x, y)') ('f', ('x', 'y')) >>> split_call('f') ('f', ()) .. py:function:: split_equation(equation) Split equation string into LHS and RHS strings. .. rubric:: Examples >>> split_equation('f(x, y=5) = x**2') ('f(x, y=5)', 'x**2')