autoreduce.reductions.timescale.sympy_variables_exist
- sympy_variables_exist(ode_function, variables_to_check, **kwargs)[source]
Check whether variables appear in symbolic ODE expressions.
- Parameters:
ode_function (list) – SymPy expressions to inspect.
variables_to_check (list) – Symbols to search for in
ode_function.**kwargs – Supports
debug=Trueto print matching diagnostics.
- Returns:
(True, variables_that_appear)when at least one requested variable is present, otherwise(False, []).- Return type:
tuple