In [20]:

```
# 3.1
import math
Aou=700*25*1/100;
Aol=100*25*1/100;
AouPtP= 2*Aou;
AolPtP= 2*Aol;
Se1=1;
D1=AouPtP/Se1;
print ("deflection of screen corresponding to maximum pressure for sensitivity of 1mV/mm =%.1f mm" %D1)
print ('sinch the length of the screen is 100mm so waveform is out of range and hence sensitivity setting of 1mV/mm should not be used')
Se2=5;
D2=AouPtP/Se2;
print ("deflection of screen corresponding to maximum pressure for sensitivity of 5mV/mm =%.1f mm" %D2)
print ('delection is within the range')
Se3=20;
D3=AouPtP/Se3;
print ("deflection of screen corresponding to maximum pressure for sensitivity of 20mV/mm =%.1f mm" %D3)
print ('delection is within the range')
Se4=100;
D4=AouPtP/Se4;
print ("deflection of screen corresponding to maximum pressure for sensitivity of 10mV/mm =%.1f mm" %D4)
print ('delection is within the range')
Se5=500;
D5=AouPtP/Se5;
print ("deflection of screen corresponding to maximum pressure for sensitivity of 500mV/mm =%.1f mm" %D5)
print ('delection is within the range')
print ('since the sensitivity of 5mV/mm gives higher deflection so it is the optimum sensitivity')
```

In [21]:

```
#3.2
import math
tA=1;
tB=1;
m=tA/tB;
EB=147.0;
EA=216;
T2=200.0;
T1=25;
n=EB/EA;
T=T2-T1;
A=12.5*10**-6;
B=1.7*10**-6;
a=3*(1+m)**2;
b=(1+m*n)*((m**2)+1/(m*n));
c= (6*(A-B)*T*(1+m)**2);
r=(a+b)/c;
print ("Radius of curvature =%.2f mm" %r)
```

In [22]:

```
#3.3
import math
t=2;
T2=180;
T1=20;
T=T2-T1;
A=12.5*10**-6;
r=t/(2*T*A);
print ("Radius of curvature =%.0f mm" %r)
Th=40.0/500;
y=r*(1.0-math.cos(Th));
print ("vertical displacement =%.0f mm" %y)
```

In [23]:

```
#3.4
import math
Ta=1480+273;
Tf=0.8;
T=Tf**-0.25*Ta;
print ("True temperature =%.2f degree K" %T)
Tc=T-273;
print ("True temperature =%.2f degree C" %Tc)
```

In [24]:

```
# 3.5
import math
ATC1=1065;
AT=ATC1+273;
Em1=0.82;
Ta=(Em1**(-0.25))*AT;
Em2=0.75;
Taa=(Em2**-0.25)*Ta;
ATC2=Taa-273;
E=ATC1-ATC2;
print ("Error in temperature measurement=%.2f degree C" %E)
```

In [25]:

```
# 3.6
import math
EL=0.1;
Zo=250*10**3;
ZL=2.5*10**6;
Eo=EL*(1+(Zo/ZL));
B=0.1;
l=50*10**-3;
G=1000;
v=Eo/(B*l*G);
print ("Average flow rate=%.2f degree m/s" %v)
Zon=1.2*250*10**3;
ELn=2*Eo/(1+(Zon/ZL));
PDV=((0.2-ELn)/0.2)*100;
print ("Percentage decrease in voltage=%.2f degree m/s" %PDV)
```