pyhs3.generic_parse.analyze_sympy_expr

pyhs3.generic_parse.analyze_sympy_expr(sympy_expr)[source]

Analyzes a SymPy expression and logs its independent variables, dependent variables, and structure for debugging.

Parameters:

sympy_expr (Expr) – The SymPy expression to analyze.

Return type:

dict[str, Any]

Returns:

The analysis, keyed by 'expression' (the original expression), 'independent_vars' (the set of independent variables, as symbols) and 'dependent_vars' (the set of dependent variables, as functions).