eqdisco.knowledge.check_units#
- eqdisco.knowledge.check_units(equation, units, feature_names=None, constants='free')[source]#
Dimensional analysis of an equation.
- Parameters:
- equation
EquationorExpression - units
dict 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”}
- equation
- Returns:
dictconsistent(bool),unit(inferred output unit as a string, or"free"),targetandviolations(list of messages).
Examples using eqdisco.knowledge.check_units#
Physical units: dimensional consistency and Buckingham groups
Physical units: dimensional consistency and Buckingham groups