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 --- 557/CH12/EX12.2/2.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 557/CH12/EX12.2/2.sce (limited to '557/CH12/EX12.2') diff --git a/557/CH12/EX12.2/2.sce b/557/CH12/EX12.2/2.sce new file mode 100755 index 000000000..07307815d --- /dev/null +++ b/557/CH12/EX12.2/2.sce @@ -0,0 +1,22 @@ +clc; funcprot(0); //Example 12.2 + +//Initializing the variables +Vp =12; +lp = 40; +lm = 1; +As = 2500; +Dm = 32; +rhoP = 1025; +rhoM = 1000; +Ap = As; + +//Calculations +Am = As/40^2; +Vm = Vp*sqrt(lm/lp); +Dfm = 3.7*Vm^1.95*Am; +Rm = Dm - Dfm; +Rp = Rm *(rhoP/rhoM)*(lp/lm)^2*(Vp/Vm)^2; +Dfp = 2.9*Vp^1.8*Ap; +Dp = Rp + Dfp; + +disp(Dp/1000,"Expected total resistance (kN) :"); \ No newline at end of file -- cgit