summaryrefslogtreecommitdiff
path: root/1898/CH1/EX1.11
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.11
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.11')
-rwxr-xr-x1898/CH1/EX1.11/Ex1_11.sce26
1 files changed, 26 insertions, 0 deletions
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----------------------------------------------------------------------------