summaryrefslogtreecommitdiff
path: root/51/CH2/EX2.7/2_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /51/CH2/EX2.7/2_7.sce
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 '51/CH2/EX2.7/2_7.sce')
-rwxr-xr-x51/CH2/EX2.7/2_7.sce21
1 files changed, 21 insertions, 0 deletions
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")