mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update physics/ideal_gas_law.py
Removed unnecessary parentheses Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
c8c29e9611
commit
b637591ae9
@ -67,7 +67,7 @@ def temperature_of_gas_system(moles: float, volume: float, pressure: float) -> f
|
|||||||
if moles < 0 or volume < 0 or pressure < 0:
|
if moles < 0 or volume < 0 or pressure < 0:
|
||||||
raise ValueError("Invalid inputs. Enter positive value.")
|
raise ValueError("Invalid inputs. Enter positive value.")
|
||||||
|
|
||||||
return (pressure * volume) / (moles * UNIVERSAL_GAS_CONSTANT)
|
return pressure * volume / (moles * UNIVERSAL_GAS_CONSTANT)
|
||||||
|
|
||||||
|
|
||||||
def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float:
|
def moles_of_gas_system(kelvin: float, volume: float, pressure: float) -> float:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user