summaryrefslogtreecommitdiff
path: root/3772/CH2/EX2.12/Ex2_12.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3772/CH2/EX2.12/Ex2_12.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3772/CH2/EX2.12/Ex2_12.sce')
-rw-r--r--3772/CH2/EX2.12/Ex2_12.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3772/CH2/EX2.12/Ex2_12.sce b/3772/CH2/EX2.12/Ex2_12.sce
new file mode 100644
index 000000000..362a46514
--- /dev/null
+++ b/3772/CH2/EX2.12/Ex2_12.sce
@@ -0,0 +1,31 @@
+// Problem no. 2.12,Page no.38
+
+
+clc;clear;
+close;
+
+//Rectangle
+a_1=600 //cm**2 //Area of the Rectangle
+y_1=15 //cm //C.G of Rectangle
+b=20 //cm //width of rectangle
+d=30 //cm //depth of rectangle
+D=15 //cm //Diameter of circle
+
+//Circle
+a_2=176.7 //cm**2 //Area of the circle
+y_2=20 //cm //C.G of the circle
+
+//Calculation
+
+Y_bar=((a_1*y_1-a_2*y_2)*(a_1-a_2)**-1) //cm //Distance of C.G From the AB
+Y_bar_1=2.1 //cm
+Y_bar_2=7.1 //cm
+
+I_1=b*d**3*12**-1 //cm**4 //M.I of the rectangle about its C.G and parallel to x-x axis
+I_2=I_1+a_1*Y_bar_1**2
+I_3=%pi*D**4*64**-1+a_2*Y_bar_2**2 //cm**4 //M.I of circular section about x-x axis
+
+I=I_2-I_3 //cm**4 //M.I of the section about x-x axis
+
+//Result
+printf("M.I of the section about x-x axis = %.2f cm^4",I)