summaryrefslogtreecommitdiff
path: root/1898/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1898/CH1/EX1.1/Ex1_1.sce')
-rwxr-xr-x1898/CH1/EX1.1/Ex1_1.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1898/CH1/EX1.1/Ex1_1.sce b/1898/CH1/EX1.1/Ex1_1.sce
new file mode 100755
index 000000000..7b8afb02a
--- /dev/null
+++ b/1898/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,31 @@
+clear all; clc;
+
+disp("Scilab Code Ex 1.1 :")
+
+w_varying = 270;
+l_crossection = 9;
+l_cb = 6;
+l_ac = 2;
+w_c = (w_varying/l_crossection) * l_cb //By proportion, load at C is found.
+f_resultant_c = 0.5* w_c *l_cb
+// Equations of Equilibrium
+
+//Balancing forces in the x direction:
+n_c = 0
+
+//Balncing forces in the y direction:
+v_c = f_resultant_c
+
+// Balncing the moments about C:
+m_c = - (f_resultant_c*l_ac)
+
+
+// Displaying results:
+
+printf('\n\nThe resultant force at C = %.2f N',f_resultant_c);
+printf('\nThe horizontal force at C = %.2f N',n_c);
+printf('\nThe vertical force at C = %.2f N',v_c);
+printf('\nThe moment about C = %.2f Nm',m_c);
+
+
+// ---------------------------------------------------------END-------------------------------------------------