▲ | cosmic_quanta 4 days ago | |||||||
There are Haskell packages for uncertainty (e.g. [0], based on automatic differentiation [1]). However, these packages don't support typed dimensions, because multiplication/division becomes more complex. It is my goal to provide quantities with uncertainty AND typed dimensions one day. | ||||||||
▲ | jcgrillo 4 days ago | parent | next [-] | |||||||
Very cool. Thanks for the links, I'm not very familiar with the Haskell ecosystem, I mostly work in Rust and Go these days. I'll definitely check them out. | ||||||||
▲ | ssivark 4 days ago | parent | prev [-] | |||||||
This is the kind of thing that would be pretty straight-forward in Julia, I imagine. Independent libraries for uncertainties and units could easily be remixed together if the unitful quantity accepts any number type, and the uncertainties just define a new number type. Multiple dispatch should generate consistent downstream behavior "for free". | ||||||||
|