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 --- 51/CH2/EX2.7/2_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 51/CH2/EX2.7/2_7.sce (limited to '51/CH2/EX2.7') diff --git a/51/CH2/EX2.7/2_7.sce b/51/CH2/EX2.7/2_7.sce new file mode 100755 index 000000000..7df66def8 --- /dev/null +++ b/51/CH2/EX2.7/2_7.sce @@ -0,0 +1,21 @@ +clc; +clear; +sw=64;//lb/ft^3; specific weight of water +h=10;//ft +a=3;//ft +b=3;//ft + +//shape is triangular, hence hc=h-(a/3) +hc=h-(a/3); +A=(0.5*a*b);//ft^3; area of the right angled triangle +fres=sw*hc*A;//lb +Ixc=b*(a^3)/36; +Ixyc=b*(a^2)*(b)/72; +//according to the coordinate system taken yc=hc and xc=0 +yres=(Ixc/(hc*A))+hc; +xres=(Ixyc/(hc*A)); +ydist=yres-hc; +disp("lb",fres,"The resultant force on the area shown is=") +disp("ft",yres,"yR=") +disp("ft",xres,"xR=") +disp("ft below the centroid of the area.",ydist,"ft to the right of and ",xres,"The centre of pressure is") -- cgit