from scipy.constants import R, N_A
from sage.misc.latex import pretty_print
mol = units.amount_of_substance.mole
R = R*units.energy.joule/ units.temperature.kelvin / mol
Pa = units.pressure.pascal
m = (units.length.meter)
K = units.temperature.kelvin
kg = units.mass.gram*10^3
ML = 28.964*units.mass.gram/mol
p = 10^5*Pa
T = 293.15*K
m = 1*kg
n = m/ML
V = n*R*T/p
print "1 kg Luft:"
pretty_print (V.convert())
print "1 mol Luft:"
n = 1*mol
V = n*R*T/p
pretty_print (V.convert())
1 kg Luft:
\newcommand{\Bold}[1]{\mathbf{#1}}0.841523086175943 \, \mbox{meter}^{3}
1 mol Luft:
\newcommand{\Bold}[1]{\mathbf{#1}}0.0243738746680000 \, \mbox{meter}^{3}