Open jwiegley opened 2 months ago
Where uconv
is defined using (defalias 'calcFunc-uconv 'math-convert-units)
.
From playing around with it for a bit, I don't think it's a division thing, for example
flow = 120 L => flow: 120 L
surface_area = 794 m^2 => surface_area: 794 m^2
loss_by_flow = flow / surface_area => loss_by_flow: 0.151133501259 L / m^2
result = uconv(loss_by_flow, gal) => result: 0.0399252472077 gal / m^2
converts only the numerator instead. My suspicion is that in^2
/m^2
aren't actually recognized as units of volume for some reason. Similarly, usimplify
doesn't seem to reduce the fraction either.
As a counterexample, this works as intended:
f = 150 g * 3 m/s^2 => f: 450 g m / s^2
= uconv(f, N) => 0.45 N
Hello! Great mode, it could replace all my uses of the
Soulver
app on macOS.One question I have: I made the alias for using
uconv
to do unit conversions, but it's not working as I would expect. For example, let's say I do the following incalc
:This is great. But in
literate-calc-mode
I have:This is not the answer I would have expected, although it's correct in some sense. Why is it only applying the unit conversion to the denominator here, and not to the whole result?