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/CH6/EX6.28/Ex6_28.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 1898/CH6/EX6.28/Ex6_28.sce (limited to '1898/CH6/EX6.28/Ex6_28.sce') diff --git a/1898/CH6/EX6.28/Ex6_28.sce b/1898/CH6/EX6.28/Ex6_28.sce new file mode 100755 index 000000000..46c556012 --- /dev/null +++ b/1898/CH6/EX6.28/Ex6_28.sce @@ -0,0 +1,27 @@ +clear all; clc; + +disp("Scilab Code Ex 6.28 : ") + +//Given: +sigma_y = 250; //MPa +t = 15/1000; //m +w = 100/1000; //m +h = 120/1000; //m +c = 10/1000; //m + +//Calculations: +d = ((sigma_y*t*w)+(sigma_y*t*h))/(sigma_y*t*2); + +T = sigma_y*t*d*10^3; +C1 = sigma_y*t*c*10^3; +C2 = sigma_y*t*w*10^3; + +Mp = (T*d/2)+(C1*c/2)+(C2*(c+t/2)); + +//Display: + + + printf("\n\nThe plastic moment that can be resisted by the beam = %1.1f kNm',Mp); + + //------------------------------------------------------------------------END--------------------------------------------------------------------------------------- + -- cgit