diff options
Diffstat (limited to '3886/CH10/EX10.5/10_5.sce')
-rw-r--r-- | 3886/CH10/EX10.5/10_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3886/CH10/EX10.5/10_5.sce b/3886/CH10/EX10.5/10_5.sce new file mode 100644 index 000000000..443b4c898 --- /dev/null +++ b/3886/CH10/EX10.5/10_5.sce @@ -0,0 +1,13 @@ +//Locate centroid
+//Refer fig.10.6
+//lets assign random value to w
+w=1
+sumWi=1053.98*w
+sumWixi=95055.54*w
+sumWiyi=125214.83*w
+sumWizi=59201.4*w
+xbar=(sumWixi)/(sumWi)
+ybar=(sumWiyi)/(sumWi)
+zbar=(sumWizi)/(sumWi)
+printf("\nxbar=%.2f mm\nybar=%.2f mm\nzbar=%.2f mm",xbar,ybar,zbar)
+
|