uom
uom copied to clipboard
Units of measurement -- type-safe zero-cost dimensional analysis
I'm new to rust and very new to UOM, so admittedly, this is likely user error caused by a lack of understanding. This is a followup from my [StackOverflow post](https://stackoverflow.com/q/78094976/2988730),...
I wanted to confirm what the power loss would be for a mechanical heat recovery fan. I had tried to do this on a calculator but this quickly became annoying:...
Hello. I encountered a conversion problem second to millisecond using BigRational implementation. It appears that the problem may be related to the floating-point precision of the conversion factor. Is this...
It's of course possible that I missed it, sorry if that's the case, but I can't seem to find a built-in type alias for angular momentum. It's easy enough to...
Initially, `ConversionFactor` and thus `Conversion::T` requred `PartialEq`. This makes sense for the conversion factor itself (i.e. scaling across units), however it breaks once you introduce complex numbers. Those can *still*...
Instead of manual cache setup, consider a rust-specific action like https://github.com/Swatinem/rust-cache. What do other crates do for caching? https://github.com/iliekturtles/uom/blob/d4f08de4777806f017511f2bf4907bd29e8dd219/.github/workflows/ci-full-test-suite.yml#L19-L30
It can be interesting (or needed) to access only the real or imaginary part of a complex quantity. Currently, i have solved this for my codebase like this, but it...
While first using uom, I found it difficult to get values back out of quantities for plotting. It took longer than I'd like to admit to find the get() function,...
Heya, i have run into the following issue: Lets assume a complex impedance like `Z = (123 + 321j) * ohm` ```rust use uom::fmt::DisplayStyle; use uom::si::complex64::ElectricalResistance; use uom::si::electrical_resistance::ohm; use uom::num_complex::Complex64;...