eqdisco.knowledge.check_units#

eqdisco.knowledge.check_units(equation, units, feature_names=None, constants='free')[source]#

Dimensional analysis of an equation.

Parameters:
equationEquation or Expression
unitsdict

Units of the variables by name; the key "__target__" gives the unit of the output. Variables without a unit are treated as free.

constants{“free”, “dimensionless”}
Returns:
dict

consistent (bool), unit (inferred output unit as a string, or "free"), target and violations (list of messages).

Examples using eqdisco.knowledge.check_units#

Physical units: dimensional consistency and Buckingham groups

Physical units: dimensional consistency and Buckingham groups