diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1898/CH1/EX1.8 | |
download | Scilab-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-x | 1898/CH1/EX1.8/Ex1_8.sce | 28 |
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------------------------------------------------------------------------------
+
+
|