summaryrefslogtreecommitdiff
path: root/2087/CH3/EX3.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2087/CH3/EX3.14
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 '2087/CH3/EX3.14')
-rwxr-xr-x2087/CH3/EX3.14/example3_14.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/2087/CH3/EX3.14/example3_14.sce b/2087/CH3/EX3.14/example3_14.sce
new file mode 100755
index 000000000..7553a6f4a
--- /dev/null
+++ b/2087/CH3/EX3.14/example3_14.sce
@@ -0,0 +1,30 @@
+
+
+//example 3.14
+//calculate Discharge for water course
+clc;
+//Given
+CA=1200; //culturable area
+IA=0.4; //intensity of irrigation of crop A
+IB=0.35; //intensity of irrigation of crop B
+bA=20; //kor period of crop A
+bB=15; //kor period of crop B
+deltaA=0.1; //kor depth of crop A
+deltaB=0.16; //kor depth of crop B
+
+//crop A
+A=CA*IA;
+Du=8.64*bA/deltaA;
+qA=A/Du;
+qA=round(qA*1000)/1000;
+mprintf("Discharge required for crop A=%f cumec.",qA);
+
+//crop B
+A=CA*IB;
+Du=8.64*bB/deltaB;
+qB=A/Du;
+qB=round(qB*1000)/1000;
+mprintf("\nDischarge required for crop B=%f cumec.",qB);
+D=qA+qB;
+D=round(D*10)/10;
+mprintf("\nDesign discharge of water course=%f cumec.",D);