mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 02:18:39 +00:00
Update ideal_gas_law.py
Updated incorrect function calls moles of gas system doctests
This commit is contained in:
parent
b637591ae9
commit
5ce54f2180
@ -72,11 +72,11 @@ def temperature_of_gas_system(moles: float, volume: float, pressure: float) -> f
|
||||
|
||||
def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float:
|
||||
"""
|
||||
>>> temperature_of_gas_system(100, 5, 10)
|
||||
>>> moles_of_gas_system(100, 5, 10)
|
||||
0.06013618199229246
|
||||
>>> temperature_of_gas_system(110,5009,1000)
|
||||
>>> moles_of_gas_system(110,5009,1000)
|
||||
5476.766101807144
|
||||
>>> temperature_of_gas_system(3, -0.46, 23.5)
|
||||
>>> moles_of_gas_system(3, -0.46, 23.5)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: Invalid inputs. Enter positive value.
|
||||
|
Loading…
x
Reference in New Issue
Block a user