# Variables
Eab1 = 0.
Eab2 = 5.87 #mV
T1 = 150. #F
T2 = 200. #F
# Calculations
Eab = -1.12+ 0.035*T1
pi1 = 0.035*(T1+460)
pi2 = 0.035*(T2+460)
# Results
print "Thermocouple reading at %d F = %.2f mv"%(T1,Eab)
print " Peltier coefficient at %d F = %.1f mv"%(T1,pi1)
print " Peltier coefficient at %d F = %.1f mv"%(T2,pi2)
# Variables
T = 0. #C
# Calculations
de1 = -72. #mV/C
de2 = 500. #mv/C
alpha = de1-de2
pi = -(T+273)*alpha
# Results
print "Peltier coefficient at %d C = %d mv"%(T,pi/1000)