AngouriMath

Navigation

Dimensions


← Back to list of classes

Description

Summary

Dimensional analysis: whether a formula is physically meaningful, what kind of
quantity it produces, and which combinations of its variables are pure numbers.

Remarks

A variable is a symbol, and nothing in an Entity says that v is a speed. The caller says so, with a map from each variable to its
Dimension, and the check reads the formula against it. The map is
passed rather than attached to the variables, so the same expression can be read
under different assignments, and nothing about how an expression prints, parses or
simplifies changes.
This complements a units library rather than replacing one. UnitsNet and its kind
check a value: a length divided by a time is a speed. Neither can look at
sqrt(2 g h) and say whether it is one, and that is what this does.
Undetermined is not a verdict. An undeclared variable, or a node the check does
not read, gives Undetermined, never a guess.
The page Docs/Usage/Dimensions.md lists the rule for each kind of node and
works the water-wave example through.

Members

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6003 pages online