pymare.effectsize.solve_system

solve_system(system, known_vars=None)[source]

Solve and evaluate a system of SymPy equations given known inputs.

Parameters:
  • system (list of sympy.core.expr.Expr) – A list of SymPy expressions defining the system to solve.

  • known_vars (None or dict, optional) – A dictionary of known variables to use when evaluating the solution. Keys are the names of parameters (e.g., ‘sem’, ‘t’), values are numerical data types (including numpy arrays). Default = None.

Returns:

A dictionary of newly computed values, where the keys are parameter names and the values are numerical data types.

Return type:

dict

Notes

The returned dictionary contains only keys that were not passed in as input (i.e., already known variables will be ignored).