from __future__ import division
import math
sum_FAFlBL=1263.6*10**6 # (N.mm)
sum_FAFlDL=880*10**6 # (N.mm)
E=200000 # young's modulus (N/mm^2)
A=1800 # area of each member (mm^2)
#eqn 4.23 We=Wi
del_B=sum_FAFlBL/A/E
print "\ndeflection at point B =%2.2f mm\n"%(del_B)
del_D=sum_FAFlDL/A/E
print "deflection at point D =%2.2f mm\n"%(del_D)
from __future__ import division
import math
ext_load=30 #external load(kN)
#eqn 30*4*del_vB/3=F_BA*del_vB
F_BA=ext_load*4/3
print "\nforce in the struss AB is = %3.2f kN\n"%(F_BA)