From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1205/CH5/EX5.7/S_5_7.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 1205/CH5/EX5.7/S_5_7.sce (limited to '1205/CH5/EX5.7/S_5_7.sce') 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); + -- cgit