Professional Documents
Culture Documents
if m==1:
b=int(input("Enter the width in mm:"))
de=int(input("Enter the depth in mm:"))
i= (b*de*de*de)/12
elif m==2:
d=int(input("Enter the diameter in mm:"))
i=(3.14*d*d*d*d)/64
if a==1:
w=int(input("Enter load in Newton:"))
y=(w*l*l*l)/(3*e*i*pow(10,-12))
elif a==2:
w=int(input("Enter the load in Newton per meter:"))
y=-(w*l*l*l*l)/(8*e*i*pow(10,-12))
elif a==3:
w=int(input("Enter the load in Newton:"))
y=-(w*l*l*l)/(48*e*i*pow(10,-12))
elif a==4:
w=int(input("Enter the load in Newton per meter:"))
y=-(5*w*l*l*l*l)/(382*e*i*pow(10,-12))
#finally calculating the deflection using the value of y of the chosen beam