diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /416/CH8/EX8.2/exp8_2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '416/CH8/EX8.2/exp8_2.sce')
-rwxr-xr-x | 416/CH8/EX8.2/exp8_2.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/416/CH8/EX8.2/exp8_2.sce b/416/CH8/EX8.2/exp8_2.sce new file mode 100755 index 000000000..c0c10f53c --- /dev/null +++ b/416/CH8/EX8.2/exp8_2.sce @@ -0,0 +1,27 @@ +clear
+clc
+disp("example 8.2")
+flow=[0 1000 800 600 400 400 1200 2400 2400 1000 400 400 1000] //flow in matrix from in the order of months
+y=0:12
+h=150
+e=0.85
+avg=sum(flow)/12
+printf("\naverage rate of inflow is %dcu-m/sec",avg)
+p=(735.5/75)*avg*h*e
+printf("\npower developed is %fkW",p)
+plot2d2(y,flow)
+
+xtitle('hydrograph','months','run in cu-m/sec')
+disp("hydrograph is ploted in figure")
+for x=1:12
+ t=flow(1,x)
+ a=avg
+ if t<a|t==avg then
+ t=0
+ else
+ t=t-1000
+ end
+ flow1(1,x)=t;
+ end
+sto=sum(flow1)
+printf("\nstorage capacity of given plant is %dsec-m-month",sto)
\ No newline at end of file |