diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3886/CH9/EX9.5/9_5.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2 Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip |
Diffstat (limited to '3886/CH9/EX9.5/9_5.sce')
-rw-r--r-- | 3886/CH9/EX9.5/9_5.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3886/CH9/EX9.5/9_5.sce b/3886/CH9/EX9.5/9_5.sce new file mode 100644 index 000000000..c341eed72 --- /dev/null +++ b/3886/CH9/EX9.5/9_5.sce @@ -0,0 +1,21 @@ +//Determine centroid
+//refer fig. 9.14
+//This figure is divided into three simple figures
+A1=3*4/2 //m^2
+A2=6*4 //m^2
+A3=%pi*(1/2)*2^2 //m^2
+A=A1+A2+A3 //m^2
+//Co-ordinates of centroid
+x1=6+3/3 //m
+ya=4/3 //m
+x2=3 //m
+y2=2 //m
+R=2
+x3=(-4*R)/(3*%pi) //m
+y3=2 //m
+xbar=(A1*x1+A2*x2+A3*x3)/(A) //m
+ybar=(A1*ya+A2*y2+A3*y3)/(A) //m
+printf("\nxbar=%.3f m\nybar=%.3f m",xbar,ybar)
+
+
+
|