From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2087/CH4/EX4.10/example4_10.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2087/CH4/EX4.10/example4_10.sce (limited to '2087/CH4/EX4.10/example4_10.sce') 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. -- cgit