Calculate fluid densities for methane (CH4) and carbon dioxide (CO2) both the ideal gas assumption and the Peng-Robinson Equation of State (EOS).
Reference: Peng, D. Y., & Robinson, D. B. (1976). A new two-constant equation of state. Industrial & Engineering Chemistry Fundamentals, 15(1), 59-64.