= Pressure() p
Gas
Fill in a module description here
Pressure
Pressure ()
Initialize self. See help(type(self)) for accurate signature.
p.data
Series([], Name: Pressure over time, dtype: object)
2312) p.append(
<__main__.Pressure>
Gas
Gas (formula:str)
Represents a chemical compound.
Type | Details | |
---|---|---|
formula | str | the chemical formula |
Gas’s Laws
GasLaw
GasLaw ()
Initialize self. See help(type(self)) for accurate signature.
GasLaw().charles_law()
Eq(t_1/v_1, t_2/v_2)
GasLaw().avogadro_law()
Eq(n_1/v_1, n_2/v_2)
def boylelaw():
= smp.symbols('p_1 v_1 p_2 v_2')
p1, v1, p2, v2 return smp.Eq(p1*v1, p2*v2)
boylelaw()
Eq(p_1*v_1, p_2*v_2)
'p_1', 2), ('v_2', 5)]) boylelaw().subs([(
Eq(2*v_1, 5*p_2)
Gas’s law using a different unit from the SI unit
UnitGas
UnitGas ()
Default Units