from __future__ import division
import math
a=150;
b=100;
ar=2.525;
br=1.755;
sc=1000;
d=(a*a)/(sc*sc);
A=0.0673*d*d;
fa=ar-A;
print('correct reading on A =',fa,'meters');
d=(b*b)/(sc*sc);
B=0.0673*d*d;
fb=br-B;
print('correct reading of B =',fb,'meters');
AB=fa-fb;
print('true difference is',AB,'meters');
from __future__ import division
import math
d=30;
sc=1000;
h=0.0673*d*d;
print('heigght of lighthouse is',h,'meters');
from __future__ import division
import math
h=50;
d=math.sqrt(h/0.0673);
print('D=',d);
r=6370;
dip=d/r;
print('dimp of horizon',dip,'degrees');
dip1=dip*((180*60)/math.pi)
print('dimp of horizon',dip1,'minutes');
from __future__ import division
import math
h1=50;
h2=10;
c=0.0673;
d1=math.sqrt(h1/c);
d2=math.sqrt(h2/c);
dis=d1+d2;
print('distance between man and object is',dis,'meters');
from __future__ import division
import math
h1=10;
c=0.0673
d1=math.sqrt(h1/c);
d2=d1-80; #since d1+d2=80;
h2=c*d2*d2;
print('height of the hill is ',h2,'meters');
from __future__ import division
import math
h1=100;
h2=150;
r2=12880;
c=(6/7)*(1000/r2);
d1=math.sqrt(h1/c)
d2=math.sqrt(h2/c)
d=d1+d2;
print('distance AB =',d,'meters');
from __future__ import division
import math
r1=2.550;
r2=2.500;
s=r1-r2;
d=0.002;
D=100;
n=5;
r=(n*d*D/s);
print('R=',r);
alp=(s/(n*D))*206265;
print('sensitiveness of bubble is ',alp,'seconds');
from __future__ import division
import math
n=2;
D=100;
alp=20;
s=(alp*n*D)/206265;
print('error is ',s,'meters');
from __future__ import division
import math
a=2.245;
b=3.375;
AB=b-a;
ap=1.955;
bp=3.055;
dAB=bp-ap;
tl=(AB+dAB)/2;
print('true level of difference is',tl,'meters')
rla=125.55;
rlb=rla-tl;
print('RL of B =',rlb,'meters');
from __future__ import division
import math
aa=1.155;
ab=2.595;
ba=0.985;
bb=2.415;
td=((ab-aa)+(bb-ba))/2
rla=525.5;
rlb=rla-td;
dab=500;
print('true RL of B',rlb,'meters');
dab1=dab/1000;
correct=0.0673*dab1*dab1;
print('combined corrction for 500m=',correct,'meters');
sc=100;
a=1.155;
e=-(0.0118*sc)/(dab);
print('collimation error per 100m=',e,'meters')
from __future__ import division
import math
aa=1.725;
ab=1.370;
ba=1.560;
bb=1.235;
A=aa-ab;
B=ba-bb;
AB=(A+B)/2;
print('true difference between A and B is ',AB,'meters');
CB=bb;
CA=CB+AB;
OCA=1.560;
e=OCA-CA;
print('amount of collimation error =',e,'meters');
from __future__ import division
import math
aa=1.725;
ab=2.245;
ba=2.145;
bb=3.045;
AB=200;
rla=450;
aAB=ab-aa;
print('apparent difference of level between A and B is',aAB,'meters');
dB=bb-ba
print('apparent difference of level at B',dB,'meters')
td=(aAB+dB)/2;
print('true differece of level=',td);
CB=bb;
CA=CB-td;
e=ba-CA;
print('correction to be applied at A is =',e)
rlb=rla-td;
print('RL of B=',rlb,'meters')
from __future__ import division
import math
aa=1.725;
ab=2.245;
ba=2.145;
bb=3.045;
dAB=200;
rla=450.0;
AB=ab-aa;
print(AB)
adif=bb-ba
print('apparent difference of level =',adif,'meters');
#a
td=(AB+adif)/2;
print('true difference of level=',td,'meters')
#b
tb=bb;
ta=bb-td;
print('true reading on A=',ta,'meters');
#c
e=ba-ta;
print('collimation error =',e,'meters');
#d
rlb=rla-td;
print('RL of B=',rlb,'meters');
from __future__ import division
import math
ma=1.585;
mb=1.225;
aa=1.425;
ab=1.150;
dAB=100;
#a
td=ma-mb;
B=aa-td;
print('correct staff reading on B should be =',B,'meters');
#c
e=ab-B;
print('collimation error is ',e,'meters')
#ch-5 page 187 pb-3
from __future__ import division
import math
dAB=100;
aa=1.875;
ab=1.790;
le=10;
ba=1.630;
bb=1.560;
td=aa-ab;
apd=ba-bb;
print('first setting')
print('true difference is',td,'meters');
print('apparent difference of level =',apd,'meters');
print('second setting');
A=ba-td;
e1=bb-A
cA=(le/dAB)*e1
cB=((le+dAB)/dAB)*e1
print('collimation error is',e1,'meters')
print('correction at A=',cA,'meters')
print('correction at B=',cB,'meters')
from __future__ import division
import math
bs1=2.375;bs2=2.835;bs3=0.435;
is1=1.730;is2=0.615;is3=2.070;is4=1.835;is5=1.630;
is6=2.255;
fs1=3.450;fs2=0.985;fs3=3.630;
sbs=bs1+bs2+bs3;
sis=is1+is2+is3+is4+is5+is6;
sfs=fs1+fs2+fs3;
r1=bs1-is1;
r2=is1-is2;
r3=bs2-is3;
r4=is3-is4;
r5=is4-fs2;
sr=r1+r2+r3+r4+r5;
print(r1,r2,r3,r4,r5,sr);
f1=bs2;
f2=is5-bs3;
f3=fs3-is6;
f4=is6-is5
sf=f1+f2+f3+f4;
print(f1,f2,f4,f3,sf);
k=sbs-sfs
print('k=',k);
k1=sr-sf
print('k1=',k1);
from __future__ import division
import math
bs1=3.150;bs2=3.860;bs3=0.470;
is1=2.245;is2=2.125;is3=0.760;is4=1.935;is5=3.225;
fs1=1.125;fs2=2.235;fs3=3.890;
sbs=bs1+bs2+bs3;
sis=is1+is2+is3+is4+is5;
sfs=fs1+fs2+fs3;
r1=bs1-is1;
r2=is1-fs1;
r3=bs2-is2;
r4=is2-is3;
sr=r1+r2+r3+r4;
print(r1,r2,r3,r4,sr);
f1=fs2-is3;
f2=is4-bs3;
f3=is5-is4;
f4=fs3-is5;
sf=f1+f2+f3+f4;
print(f1,f2,f4,f3,sf);
k=sbs-sfs
print('k=',k);
k1=sr-sf
print('k1=',k1);