Given three (or more) units, dimension analysis often lets you derive the mathematical formula
That is indeed very cool! One of the reasons I wish radians were a base unit is to enable even more precise dimensional analysis (e.g. Planck’s constant and reduced Planck’s constant would have different dimensions).
How does dimensional
deal with integrals and derivatives?
Right now it doesn’t do analytical integrals and derivatives. For many numerical routines (e.g. Runge-Kutta), all you need are basic arithmetic operations.
I would love to see an ecosystem around dimensional
; for example, supporting typed dimensions in the automatic differentiation ad
package or quantities with uncertainties in the uncertain
package.
This would be rather involved, since (*)
and (/)
for quantities is a lot more flexible than for the Num
typeclass.