summaryrefslogtreecommitdiff
path: root/2087/CH4/EX4.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2087/CH4/EX4.10
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/CH4/EX4.10')
-rwxr-xr-x2087/CH4/EX4.10/example4_10.jpgbin0 -> 23420 bytes
-rwxr-xr-x2087/CH4/EX4.10/example4_10.sce26
2 files changed, 26 insertions, 0 deletions
diff --git a/2087/CH4/EX4.10/example4_10.jpg b/2087/CH4/EX4.10/example4_10.jpg
new file mode 100755
index 000000000..58c093908
--- /dev/null
+++ b/2087/CH4/EX4.10/example4_10.jpg
Binary files differ
diff --git a/2087/CH4/EX4.10/example4_10.sce b/2087/CH4/EX4.10/example4_10.sce
new file mode 100755
index 000000000..dac67884f
--- /dev/null
+++ b/2087/CH4/EX4.10/example4_10.sce
@@ -0,0 +1,26 @@
+
+
+//example 4.10
+//calculate average depth of precipitation using depth area curve
+clc;funcprot(0);
+//given
+I=[25:-1:16]; //isohytes
+a=[407 1008 1522 1909 2216 2460 2651 2782 2910 2936]; //enclosed area
+ia(1)=407;
+for i=2:10
+ ia(i)=a(i)-a(i-1);
+end
+r=[25.5:-1:16.5]
+for i=1:10
+ rv(i)=r(i)*ia(i);
+end
+cv(1)=10378;
+for i=2:10
+ cv(i)=cv(i-1)+rv(i);
+end
+for i=1:10
+ eud(i)=cv(i)/a(i); //mean precipitation
+end
+
+mprintf("From depth area curve we obtain average depth of precipitation=24.1 mm for an \narea of 1800 sq. km.");
+//graph is plotted between eud and a.