summaryrefslogtreecommitdiff
path: root/3886/CH9/EX9.3/9_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3886/CH9/EX9.3/9_3.sce')
-rw-r--r--3886/CH9/EX9.3/9_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3886/CH9/EX9.3/9_3.sce b/3886/CH9/EX9.3/9_3.sce
new file mode 100644
index 000000000..928930bcc
--- /dev/null
+++ b/3886/CH9/EX9.3/9_3.sce
@@ -0,0 +1,16 @@
+//locating centroid
+//refer fig. 9.12
+//due to symmetry centroid must lie on y-axis
+xbar=0
+A1=100*20 //mm^2
+//for A1
+y1=30+100+20/2 //mm
+//for A2
+A2=100*20 //mm^2
+y2=30+100/2 //mm
+A3=150*30 //mm^2
+y3=30/2 //mm
+A=2000+2000+4500
+ybar=(A1*y1+A2*y2+A3*y3)/A //mm
+printf("The centroid is on the symmetric axis at a distance of %.2f mm from the bottom as shown in figure 9.12",ybar)
+