From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1898/CH1/EX1.8/Ex1_8.sce | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 1898/CH1/EX1.8/Ex1_8.sce (limited to '1898/CH1/EX1.8') 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------------------------------------------------------------------------------ + + -- cgit