Computes the mass, density, and specific volume of an ideal gas using the equation of state PV = nRT. Inputs are pressure, volume, temperature, and molecular weight.