nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
955 stars 135 forks source link

Allow `pow<E>` to do fractional powers. Possibly `pow<1,2>` would be the same as `sqrt`? #292

Open BenFrantzDale opened 2 years ago

BenFrantzDale commented 2 years ago

Right now sqrt and cbrt are special. They can be generalized as pow<1,2> and pow<1,3> respectively.