blob: 7a2b8d376804fc47e1c5be2541baf0814f6960b1 (
plain)
1
2
3
4
5
6
7
8
9
|
b=300//width, in mm
d=600//effective depth, in mm
fck=20//in MPa
fy=415//in MPa
Xc=0.479*d//in mm
Mu=0.36*fck*b*Xc*(d-0.416*Xc)/10^6//in kN-m
Ast=round(0.36*fck*b*Xc/0.87/fy)//in sq mm
mprintf("Moment of resistance of the beam=%f kN-m\nSteel required=%d sq mm", Mu,Ast)
//answer does not match with textbook because of round-off error
|