summaryrefslogtreecommitdiff
path: root/1898/CH1/EX1.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1898/CH1/EX1.8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1898/CH1/EX1.8')
-rwxr-xr-x1898/CH1/EX1.8/Ex1_8.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/1898/CH1/EX1.8/Ex1_8.sce b/1898/CH1/EX1.8/Ex1_8.sce
new file mode 100755
index 000000000..51fc6a146
--- /dev/null
+++ b/1898/CH1/EX1.8/Ex1_8.sce
@@ -0,0 +1,28 @@
+clear all; clc;
+
+
+disp("Scilab Code Ex 1.8 :")
+
+//Given:
+h_above_ab = 0.8;
+h_below_ab = 0.2;
+d_a = 0.2;
+d_b = 0.1;
+sp_w = 80;
+
+// Equation of Equilibrium:
+
+
+a = %pi* (d_a^2); // Area of cross section in m^2
+p = sp_w * h_above_ab * a;
+avg_comp_stress = p/a; // The average compressive stress in kN/m^2
+
+//Display:
+
+printf('\nThe internal Axial force P = %.2f kN',p);
+printf('\nThe average compressive stress = %.2f kN/m^2',avg_comp_stress);
+
+
+//--------------------------------------------------------------------------------END------------------------------------------------------------------------------
+
+