summaryrefslogtreecommitdiff
path: root/3862/CH4/EX4.18/Ex4_18.sce
blob: a9d56d4cd7fd107e88ee89a0d1f4a01a8dff5023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//In this problem, it is required to find out the moment of inertia of the section about an axis AB. So there is no need to find out the position of the centroid. 
//The given section is split up into simple rectangles
//Moment of inertia about AB = Sum of moments of inertia of the rectangle about AB

//variable declaration

A1=400*20.0
A2=100*10
A3=10*380.0
A4=100*10.0

IAB=(400.0*(20**3)/12)+(A1*(10**2))+((100*(10**3)/12)+(A2*(25**2)))*2+((10*(380**3)/12)+(A3*(220**2)))*2+((100*(10**3)/12)+(A4*(415**2)))*2

printf("\n IAB= %0.0f  mm^4",IAB)