summaryrefslogtreecommitdiff
path: root/2132/CH6/EX6.1/Example6_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH6/EX6.1/Example6_1.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/CH6/EX6.1/Example6_1.sce')
-rwxr-xr-x2132/CH6/EX6.1/Example6_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2132/CH6/EX6.1/Example6_1.sce b/2132/CH6/EX6.1/Example6_1.sce
new file mode 100755
index 000000000..5fb3f21eb
--- /dev/null
+++ b/2132/CH6/EX6.1/Example6_1.sce
@@ -0,0 +1,21 @@
+//Example 6.1
+clc;
+clear;
+close;
+format('v',5);
+//Given data :
+Do=25;//mm
+Dc=20;//mm
+H=85;//mm
+x=335;//mm
+y=350;//mm
+a=%pi/4*Do^2;//m^2
+ac=%pi/4*Dc^2;//m^2
+Cc=ac/a;
+disp(Cc,"Coefficient of contraction : ");
+Cv=sqrt(x^2/4/H/y);
+disp(Cv,"Coefficient of velocity : ");
+Cd=Cc*Cv;
+disp(Cd,"Coefficient of discharge : ");
+Cr=(1/Cv^2-1);
+disp(Cr,"Coefficient of resistance : ");