summaryrefslogtreecommitdiff
path: root/3886/CH9/EX9.5/9_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3886/CH9/EX9.5/9_5.sce')
-rw-r--r--3886/CH9/EX9.5/9_5.sce21
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)
+
+
+