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 --- 83/CH1/EX1.3/example_1_3.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 83/CH1/EX1.3/example_1_3.sce (limited to '83/CH1/EX1.3/example_1_3.sce') diff --git a/83/CH1/EX1.3/example_1_3.sce b/83/CH1/EX1.3/example_1_3.sce new file mode 100755 index 000000000..07632e5c0 --- /dev/null +++ b/83/CH1/EX1.3/example_1_3.sce @@ -0,0 +1,23 @@ +//Chapter 1 +//Example 1.3 +//page 7 +clear;clc; +md=25; +lf=0.6; +pcf=0.5; +puf=0.72; + +avg_demand=lf*md; +installed_capacity=avg_demand/pcf; +reserve=installed_capacity-md; +daily_ener=avg_demand*24; +ener_inst_capa=installed_capacity*24; +max_energy=daily_ener/puf; + +printf('Average Demand= %.2f MW \n\n',avg_demand); +printf('Installed capacity= %.2f MW \n\n\',installed_capacity); +printf('Reserve capacity of the plant= %.2f MW \n\n',reserve); +printf('Daily energy produced= %d MWh \n\n',daily_ener); +printf('Energy corresponding to installed capacity per day= %d MWh \n\n',ener_inst_capa); +printf('Maximum energy that could be produced = %d MWh/day \n\n',max_energy); + -- cgit