2 ms·
Author here, thanks for posting! On the Haskell Discourse [0], someone posted about another Haskell library, units [1], which allows to define unit systems NOT
by cosmic_quanta 2y ago
Author here, thanks for posting!
On the Haskell Discourse [0], someone posted about another Haskell library, units [1], which allows to define unit systems NOT limited to the 7 physical dimensions. For example, adding a base dimension for currency would be nice to model electricity prices in currency per energy.
[0]: https://discourse.haskell.org/t/blog-post-scientific-computing-with-confidence-using-typed-dimensions/10767 https://discourse.haskell.org/t/blog-post-scientific-computi...
[1]: https://hackage.haskell.org/package/units https://hackage.haskell.org/package/units
- readthenotes1 2y agoDimension analysis is a super power in applied math. I was first taught it in chemistry, but was able to use it to avoid tripping myself up on just about every real world math problem I did... (And I too changed an implementation to add units of measure to a system. It took a few days, and caused some grief with downstream system developers. But we also avoided the Mars Climate Orbiter experience in production )