Skip to content

Added functions to calculate temperature of an ideal gas and number o… #8919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 14, 2023
Prev Previous commit
Next Next commit
Update physics/ideal_gas_law.py
Updated formatting

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
  • Loading branch information
robertjcalistri and tianyizheng02 authored Aug 3, 2023
commit a2d6d5b574693965a8b0d15e3f1816c11bd317b8
2 changes: 1 addition & 1 deletion physics/ideal_gas_law.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def temperature_of_gas_system(moles: float, volume: float, pressure: float) -> f
"""
>>> temperature_of_gas_system(2, 100, 5)
30.068090996146232
>>> temperature_of_gas_system(11,5009,1000)
>>> temperature_of_gas_system(11, 5009, 1000)
54767.66101807144
>>> temperature_of_gas_system(3, -0.46, 23.5)
Traceback (most recent call last):
Expand Down