uom icon indicating copy to clipboard operation
uom copied to clipboard

Units of measurement -- type-safe zero-cost dimensional analysis

Results 151 uom issues
Sort by recently updated
recently updated
newest added

This emerged as a tangent in #295. I'm extracting it here as its own issue. Relevant original comments: + https://github.com/iliekturtles/uom/issues/295#issuecomment-1093847913 + https://github.com/iliekturtles/uom/issues/295#issuecomment-1094022805 Quoting these comments here, for easy reference jacg...

Adding density of quantum states for 3D, 2D, and 1D case, [NumberOfStates / (Volume * Energy)], that is useful for solid state physics. Basic units: 1 / (m3*J) for volumetric...

See https://crates.io/crates/cargo-semver-checks. Do other tools exist?

How would one write a generic function that uses `Quantity::sqrt()`? Here is a toy example: ```rust fn pythagoras(a: Quantity, b: Quantity) -> Quantity where ??? , { (a*a + b*b).sqrt()...

Add ThermalResistance type. Units are K/W.

The susceptance, measured in siemens (like conductance) is an important quantity for AC electrical systems. So far, only the `ElectricalConductance` exists. It would be nice to have both.

Hi, thanks for making uom! It has caught a few errors already in my small hobby project. Currently, when I subtract two thermodynamic temperatures, I get the following error: ```...

Added new quantity `ArealHeatCapacity` with base unit `J/(m²·K)`.

I really love clippy and I ran it so see if anything can be improved. But the very first things was an clippy error that I saw, so I looked...

With this code: ```rust unit! { system: uom::si; quantity: uom::si::length; @flight_level: 30.48; "FL", "flight level", "flight level"; } ``` This test fails: ```rust #[test] fn fight_level() { use uom::si::f32::Length; use...