kdavies4 / natu

Natural units in Python
http://kdavies4.github.io/natu/
Other
33 stars 5 forks source link

m3 prints as J/Pa #22

Open ChristerNilsson opened 9 years ago

ChristerNilsson commented 9 years ago

Formula: pV=nRT

p = 2269.85 * U.Pa v = 10 * U.m * 3 n = 10 * U.mol R = U.R T = 273 \ U.K

print n * R * T / p

Expected: "10 m3" Got: "10 J/Pa"

U.simplify(n * R * T / p).dimension) returns the expected L3