summaryrefslogtreecommitdiff
path: root/98/CH5/EX5.7/example5_7.sce
blob: 1216475b3b0106a3b8010669eac4e78337e8d28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//Chapter 5
//Example 5_7
//Page 94

clear;clc;

fcd=300;
fcs=1200;
rcd=0.25;
rcs=0.0625;

printf("Let L be the load factor\n");

printf("DIESEL STATION: \n");
apd=100/8760;
fc_d=fcd*apd;
rc_d=100*rcd;
printf("Average power = %.4f kW \n", apd);
printf("Maximum demand = %.4f/L kW \n", apd);
printf("Fixed charges = Rs. %.2f/L \n", fc_d);
printf("Running charges = Rs. %.2f \n", rc_d);
printf("Fixed and running charges = Rs. (%.2f/L + %.2f) \n\n", fc_d, rc_d);

printf("STEAM STATION: \n");
aps=100/8760;
fc_s=fcs*aps;
rc_s=100*rcs;
printf("Fixed charges = Rs. %.2f/L \n", fc_s);
printf("Running charges = Rs. %.2f \n", rc_s);
printf("Fixed and running charges = Rs. (%.2f/L + %.2f) \n\n", fc_s, rc_s);

l=54.72;
printf("Equating the two charges and solving, we get L = %.2f %% \n\n", l);