diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH3/EX3.13 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2132/CH3/EX3.13')
-rwxr-xr-x | 2132/CH3/EX3.13/Example3_13.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2132/CH3/EX3.13/Example3_13.sce b/2132/CH3/EX3.13/Example3_13.sce new file mode 100755 index 000000000..f87d443c6 --- /dev/null +++ b/2132/CH3/EX3.13/Example3_13.sce @@ -0,0 +1,24 @@ +//Example 3.13
+clc;
+clear;
+close;
+format('v',6);
+//Given data :
+a=8;//meter
+b=6;//meter
+h=3;//meter
+CD=2;//meter
+theta=30;//degree
+A=(a+b)/2*h;//meter^2
+AB=(a+2*b)/(a+b)*h/3;//meter
+x1bar=AB;//meter
+BC=AB*sind(theta);//meter
+BD=BC+CD;//meter
+xbar=BD;//meter
+g=9.81;//gravity
+w=g*1000;//in N/m^3
+p=w*A*xbar/10^3;//in kN
+disp(p,"Total pressure in kN : ");
+IG=(a^2+b^2+4*a*b)/(a+b)*h^3/36;//in m^4
+h_bar=IG/A/xbar*(sind(theta))^2+xbar;//in meter
+disp("Depth of centre of pressure is "+string(h_bar)+" meter.");
|