blob: 3c09f7fc26e40ba97ed59da85131f8bc22958c0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// exa 1.1 Pg 13
clc;clear;close;
Nmax=1000;// rpm
Nmin=30;// rpm
z=9;// no. of steps
//Rn=Nmax/Nmin=fi**(z-1)
fi=(Nmax/Nmin)**(1/(z-1));// common ratio
printf('The speeds of gear box are:')
N1=Nmin;// rpm
for i=1:z
printf('\n\t\t\tN%d = %.1f rpm',i,N1)
N1=fi*N1;//rpm
end;
|