summaryrefslogtreecommitdiff
path: root/3772/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3772/CH2/EX2.4/Ex2_4.sce')
-rw-r--r--3772/CH2/EX2.4/Ex2_4.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3772/CH2/EX2.4/Ex2_4.sce b/3772/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..e060dc2ba
--- /dev/null
+++ b/3772/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,20 @@
+// Problem no 2.4,Page no.33
+
+
+clc;clear;
+close;
+
+D=10 //cm //diameter of circle
+b=4 //cm //width of rectangle
+d=4 //cm //breadth of rectangle
+Y=1 //cm //Distance of centroid of rectangle 1 to C.G
+a=16 //cm**2 //area of rectangle
+
+//Calculations
+
+I_x_x_1=%pi*64**-1*(D**4) //cm**4 //moment of inertia of circle about x-x axis
+I_x_x_2=b*d**3*12**-1+a*Y**2 //cm**4 //moment of inertia of rectangle about x-x axis
+I_x_x=I_x_x_1-I_x_x_2 //cm**4 //Total moment of inertia of the section
+
+//Result
+printf("Total moment of inertia of the section is %.2f cm^4",I_x_x)