diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3878/CH10/EX10.4/Ex10_4.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3878/CH10/EX10.4/Ex10_4.sce')
-rw-r--r-- | 3878/CH10/EX10.4/Ex10_4.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3878/CH10/EX10.4/Ex10_4.sce b/3878/CH10/EX10.4/Ex10_4.sce new file mode 100644 index 000000000..f0771bfd4 --- /dev/null +++ b/3878/CH10/EX10.4/Ex10_4.sce @@ -0,0 +1,20 @@ +clear +// Variable declaration +T_c1=30// Condensing temperature for larger condenser in °C +T_c2=35// Condensing temperature for smaller condenser in °C +Rc_1=242// Rated capacity of plant for larger condenser in kW +Rc_2=218// Rated capacity of plant for smaller condenser in kW +Rt_1=1802// Running time (kW-h) +Rt_2=2000// Running time (kW-h) +Ci_1=60// Compressor electrical input power in kW +Ci_2=70// Compressor electrical input power in kW +Ec_1=11533// Electricity cost per year (£) +Ec_2=14933// Electricity cost per year (£) +C_1=14000// Cost of the larger condenser in £ +C_2=8500// Cost of the smaller condenser in £ + +// Calculation +Es=Ec_2-Ec_1// Cost of the larger condenser in £ +Bet=(C_1-C_2)*Es**-1// Break-even time in years +printf("\n Break-even time=%1.1f years",Bet) + |