Skip to main content

dim_solve

Function dim_solve 

Source
pub fn dim_solve(vars: &[(String, Dim)], target: Dim) -> Result<Vec<f64>, Error>
Expand description

Decide “can the target dimension be formed by multiplying/dividing powers of these variables?”, and if so give one set of exponents.

This and dimensionless_groups are two uses of the same system of equations: one solves the homogeneous case (forming a dimensionless group), the other the inhomogeneous case (forming the target dimension).