def pressureTemperaturePressure(): space() print("Unknown Pressure") P1 = float(input("P1 = ")) T1 = tempconv.tempConvChoose("T1") T2 = tempconv.tempConvChoose("T2") P2 = (P1 / T1) * T2 print("P2= " + str(P2)) xagain()
def volumeTemperatureVolume(): space() print("Unknown Volume") V1 = float(input("V1= ")) T1 = tempconv.tempConvChoose("T1") T2 = tempconv.tempConvChoose("T2") V2 = (V1 / T1) * T2 print("V2= " + str(V2)) xagain()
def pressureVolumeTemperatureTemperature(): space() print("Unknown Temperature") P1 = float(input("P1= ")) V1 = float(input("V1= ")) T1 = tempconv.tempConvChoose("T1") P2 = float(input("P2= ")) V2 = tempconv.tempConvChoose("T2") T2 = (P2 * V2) / ((P1 * V1) / T1) tempconv.xkelvin(T2) xagain()
def pressureVolumeTemperatureVolume(): space() print("Unknown Volume") P1 = float(input("P1= ")) V1 = float(input("V1= ")) T1 = tempconv.tempConvChoose("T1") P2 = float(input("P2= ")) T2 = tempconv.tempConvChoose("T2") V2 = (((P1 * V1) / T1) * T2) / P2 print("V2 =" + str(V2)) xagain()
def pressureTemperatureTemperature(): space() print("Unknown Temperature") P1 = float(input("P1= ")) T1 = tempconv.tempConvChoose("T1") P2 = float(input("P2= ")) T2 = P2 / (P1 / T1) tempconv.xkelvin(T2) xagain()
def volumeTemperatureTemperature(): space() print("Unknown Temperature") V1 = float(input("V1= ")) T1 = tempconv.tempConvChoose("T1") V2 = float(input("V2= ")) T2 = V2 / (V1 / T1) tempconv.xkelvin(T2) xagain()
def PVEqualsNRTMoles(): space() print("Unknown Moles") P = float(input("P= ")) V = float(input("V= ")) R = rvalue.menu() T = tempconv.tempConvChoose("T") n = (P * V) / (R * T) print("n= " + str(n)) xagain()
def PVEqualsNRTVolume(): space() print("Unknown Volume") P = float(input("P= ")) n = float(input("n= ")) R = rvalue.menu() T = tempconv.tempConvChoose("T") V = (n * R * T) / P print("V= " + str(V)) xagain()
def PVEqualsNRTPressure(): space() print("Unknown Pressure") V = float(input("V= ")) n = float(input("n= ")) R = rvalue.menu() T = tempconv.tempConvChoose("T") P = (n * R * T) / V print("P= " + str(P)) xagain()