summaryrefslogtreecommitdiff
path: root/2132/CH3/EX3.22/Example3_22.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH3/EX3.22/Example3_22.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 '2132/CH3/EX3.22/Example3_22.sce')
-rwxr-xr-x2132/CH3/EX3.22/Example3_22.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2132/CH3/EX3.22/Example3_22.sce b/2132/CH3/EX3.22/Example3_22.sce
new file mode 100755
index 000000000..6ff9e701d
--- /dev/null
+++ b/2132/CH3/EX3.22/Example3_22.sce
@@ -0,0 +1,17 @@
+//Example 3.22
+clc;
+clear;
+close;
+format('v',7);
+//Given data :
+A=2*1;//m^2
+xbar=2+2/2;//meter
+w=9.81;//kN/m^2
+PH=w*A*xbar;//kN
+disp(PH,"Horizontal component of resultant Pressure in kN : ");
+PV=w*[2*2+2*2-%pi*2^2/4]*1;//kN
+disp(PV,"Verticalal component of resultant Pressure in kN : ");
+P=sqrt(PH^2+PV^2);//kN
+disp(P,"Resultant pressure in kN : ");
+theta=atand(PV/PH);//degree
+disp(theta,"Direction of resultant pressure in degree : ");