yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

Multiplication displays `1 / a * b` instead of `b / a` #55

Closed yunruse closed 11 months ago

yunruse commented 11 months ago

General info

Python 3.11, Noether 1.0

Steps

>>> joule / (kilogram * kelvin)
1 / kelvin / kilogram * joule  # specific_heat_capacity, 1 m**2 / K / s**2

Expected behaviour

1 / shouldn't be used in a Multiplication if there is a unit with positive exponent:

joule / kelvin / kilogram  # specific_heat_capacity, 1 m**2 / K / s**2