Converts SymPy equality objects to a dictionary mapping left-hand side symbols to right-hand side values. Handles single Eq objects, lists, or tuples of Eq objects.
Parameters
Name
Type
Description
Default
result
Eq | list[Eq] | tuple[Eq, …]
Single Eq object, or list/tuple of Eq objects
required
Returns
Name
Type
Description
dict[Basic, Any]
Dictionary mapping LHS symbols to RHS values
Examples
from keecas import symbolsfrom keecas.utils import eq_to_dictfrom sympy import Eq# Define symbols with subscriptssigma_Sd, tau_Sd = symbols(r"\sigma_{Sd}, au_{Sd}")# Single equationeq_to_dict(Eq(sigma_Sd, 5)) # Returns: {\sigma_{Sd}: 5}