summaryrefslogtreecommitdiff
path: root/1205/CH5/EX5.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1205/CH5/EX5.7
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 '1205/CH5/EX5.7')
-rw-r--r--1205/CH5/EX5.7/S_5_7.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1205/CH5/EX5.7/S_5_7.sce b/1205/CH5/EX5.7/S_5_7.sce
new file mode 100644
index 000000000..66dc164b2
--- /dev/null
+++ b/1205/CH5/EX5.7/S_5_7.sce
@@ -0,0 +1,22 @@
+clc;
+p=7850;//kg/m^3, density of steel rim
+n=2; // no of component
+A=[(20+60+20)*(30+20),-60*30];//mm^2,Cross section Areas of rectangle I and II
+
+y=[375,365];//mm, y components of centroids of Rectangles I and II respectively
+
+
+sumV=0;
+
+for(i=1:n)
+ C(i)=2*%pi*y(i);//mm, Distance travelled by C
+ V(i)=A(i)*C(i);//mm^3, Volume of 1 component
+ sumV=sumV+V(i);// mm^3, Total volume of rim
+
+end
+sumV=sumV*10^(-9);//Conversion into m^3
+g=9.81;//m/s^2, acceleration due to gravity
+m=p*sumV;//kg, mass
+W=m*g;//N, Weight
+printf("mass of steel is m= %.0f kg and Wight is W= %.0f N\n",m,W);
+