blob: 791a14c8a4d6ac9a880dfb63f4da75742498efc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// exa 1.6 Pg 15
clc;clear;close;
Pmax=75;// kW
Pmin=7.5;// kW
z=5;// 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;
|