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.11/Ex1_11.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 1898/CH1/EX1.11/Ex1_11.sce (limited to '1898/CH1/EX1.11') diff --git a/1898/CH1/EX1.11/Ex1_11.sce b/1898/CH1/EX1.11/Ex1_11.sce new file mode 100755 index 000000000..b109be754 --- /dev/null +++ b/1898/CH1/EX1.11/Ex1_11.sce @@ -0,0 +1,26 @@ +clear all; clc; + +disp("Scilab Code Ex 1.11 : ") + +//Given : +f = 5000; //N +d_rod = 10;//Diameter of steel rod in mm. +l_bc = 20; //Length of side bc in mm. +l_bd = 40; //Length of side bd in mm. +a_rod = (%pi/4)* (d_rod^2); //Area of cross section of the rod in mm^2. +a_strut = l_bc*l_bd ; //Area of strut in mm^2. + + +//Average shear stress + +avg_shear_rod = f/a_rod; //for rod in Mpa +avg_shear_strut = (f/2)/a_strut; //for strut + +//Display: + +printf('\n\nThe average shear stress for the rod = %.2f MPa',avg_shear_rod); +printf('\nThe average shear stress for the strut = %.2f MPa',avg_shear_strut); + + + +//--------------------------------------------------------------END---------------------------------------------------------------------------- -- cgit