e1..e5 as the exponents of the base units, are there any well known methods for producing a simplified form?
As an example
m^2*kg*s^-1 simplifies to
I have a set of derived units as Name/exponent-vector pairs as input and it can be assumed all exponents are rational (and in fact most being integers and almost all not having a denominator more than about 3-4).
I know this can be reduced to a linear algebra problem but it is VERY under defined and in fact has several possible solutions.