# Example number 2.1, Page number 54¶

In :
#importing modules
import math
from __future__ import division

#Variable declaration
Tn=285;        #neutral temperature(C)
Tc=-20;         #temperature at junction(C)

#Calculation
Ti=(2*Tn)-Tc;     #temperature of inversion(C)

#Result
print "temperature of inversion is",Ti,"C"

temperature of inversion is 590 C


## Example number 2.2, Page number 54¶

In :
#importing modules
import math
from __future__ import division

#Variable declaration
aFe=16.65;          #value of a of Fe
bFe=-0.095;         #value of b of Fe
aAg=2.86;           #value of a of Ag
bAg=0.017;          #value of b of Ag
t=100;              #temperature(C)

#Calculation
a=aFe-aAg;     #value of aFe_Ag
b=bFe-bAg;     #value of bFe_Ag
Tn=-a/b;    #neutral temperature(C)
EFe_Ag=(a*t)+(0.5*b*t**2);      #thermo emf of thermocouple

#Result
print "neutral temperature is",Tn,"C"
print "thermo emf of thermocouple is",EFe_Ag

neutral temperature is 123.125 C
thermo emf of thermocouple is 819.0


## Example number 2.3, Page number 54¶

In :
#importing modules
import math
from __future__ import division

#Variable declaration
#PFe=1734-4.87t
#PCu=136+0.95t
aFe_Pb=1734;
bFe_Pb=-4.87;
aCu_Pb=136;
bCu_Pb=0.95

#Calculation
a=aFe_Pb-aCu_Pb;        #value of aFe_Cu
b=bFe_Pb-bCu_Pb;        #value of bFe_Cu
EFe_Cu=(a*t)+(0.5*b*t**2);       #thermo emf of thermocouple(microV)
EFe_Cu=EFe_Cu*10**-6;            #thermo emf of thermocouple(V)

#Result
print "thermo emf of thermocouple is",EFe_Cu,"V"

thermo emf of thermocouple is 0.1307 V