blob: 1c82508d3b4f0fc4fe299c8d91d2cfaeca6dab0c (
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
|
// exa 1.4 Pg 15
clc;clear;close;
Pmax=50;// kW
Pmin=5;// kW
z=4;// no. of models
//Rn=Pmax/Pmin=fi**(z-1)
fi=(Pmax/Pmin)**(1/(z-1));// common ratio
printf('The models are:')
for i=0:z-1
P1=fi**(i)*Pmin;// kW
printf('\n\t\t\tP%d = %.1f kW',i,P1)
end;
printf('\n for 8 models.')
z=8;// no. of models
//Rn=Pmax/Pmin=fi**(z-1)
fi=(Pmax/Pmin)**(1/(z-1));// common ratio
printf('The models are:')
for i=0:z-1
P1=fi**(i)*Pmin;// kW
printf('\n\t\t\tP%d = %.1f kW',i,P1)
end;
|