blob: c615359db2fce7ad18c0d9f4874e7fd780fc6109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Initilization of variables
b=1 // cm // smaller side of the L-section
h=4 // cm // larger side of the L-section
// Calculations
// (A) RECTANGLE A_1: Using the paralel axis theorem
Ixy=0
I_xy1=(Ixy)+((h*b)*(b/2)*(h/2)) // cm^4
// (B) RECTANGLE A_2: Using the paralel axis theorem
I_xy2=(Ixy)+((b*(h-1))*(1+(3/2))*(b/2)) // cm^4
// Product of inertia of the total area
I_xy=I_xy1+I_xy2 // cm^4
// Calculations
clc
printf('The Product of inertia of the L-section is %f cm^4 \n',I_xy)
|