blob: cdc581f9d1cd33525f5302e31c59acab6423edd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//Given
//Variable declaration
b=120 //Width in mm
d=200 //Depth in mm
L_star=2.5 //Length in m
L=2.5*1000 //Length in mm
yB=5 //Deflection at free end in mm
E=2e5 //Youngs modulus in N/sq.mm
//Calculation
I=(b*d**3)/12 //Moment of Inertia in mm^4
w=(yB*8*E*I)/(L**3*L_star)/1e3 //Uniformly distributed load in N/m
//Result
printf("\n Uniformly distributed load = %0.3f kN/m",w)
|