from __future__ import division
import math
ag=5;
giv=0.03;
L=20;
l=(giv*L/(math.sin(ag*math.pi/180)));
AB=l;
BC=AB*(math.sin(ag*(math.pi/180)));
BC=BC/20;
print('max length of offset should be',l,'meters');
from __future__ import division
import math
AD=AB=15;
ag=3;
AC=15*(math.cos(ag*(math.pi/180)))
CD=AB-AC
sc=10;
CD=CD/sc;
print('required displacement perpendicular to chain is',CD,'meters');
BC=AB*(math.sin(ag*(math.pi/180)));
BC=BC/sc;
print('displacement parallel ot chain is',BC,'meters');