summaryrefslogtreecommitdiff
path: root/3772/CH1/EX1.1
diff options
context:
space:
mode:
Diffstat (limited to '3772/CH1/EX1.1')
-rw-r--r--3772/CH1/EX1.1/Ex1_1.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3772/CH1/EX1.1/Ex1_1.sce b/3772/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..523a16618
--- /dev/null
+++ b/3772/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,26 @@
+// Problem 1.1,Page No.8
+
+
+clc;clear;
+close;
+
+//Rectangle-1
+a_1=37.5 //cm**2
+y_1=26.25 //cm
+
+//Rectangle-2
+a_2=50 //cm**2
+y_2=15 //cm
+
+//Rectangle-3
+a_3=150 //cm**2
+y_3=2.5 //cm
+
+
+//Calculation
+
+
+Y_bar=(a_1*y_1+a_2*y_2+a_3*y_3)*(a_1+a_2+a_3)**-1 //cm
+
+//Result
+printf("The centroid of the section is %.2f cm",Y_bar)