severak/graph-paper

units error

Opened this issue · 2 comments

1/unit != 1 * unit, it makes no sense

this shoul be true:

units.relate(a, b, c) - adds unit relation c = a * b where a = c / b and b = c / a are also valid

unitless = Hz * s where unitless = s / Hz and Hz = s / unitless

but this looks correct:

> (turn / (20 * Hz)) ~ s
0.05 s
> (turn / (10 * Hz)) ~ ms
100 ms