summaryrefslogtreecommitdiff
path: root/2339/CH13/EX13.2.1/Ex13_2.sce
blob: a9ff24b37d48d3114479028a22122546fe5a24cd (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
clc
clear

D1=600;
D2=300;
N1=100;
VR=D1/D2;
N2=VR*N1;

printf('Case One \n');
printf('Velocity Ratio= %2.2f',VR);
printf('\n');
printf('Speed of driven shaft= %2.2f RPM',N2);
printf('\n\n');

printf('Case Two \n');
VR=(D1+5)/(D2+5);
N2=VR*N1;
printf('Velocity Ratio= %2.2f',VR);
printf('\n');
printf('Speed of driven shaft= %2.2f RPM',N2);
printf('\n\n');

printf('Case Three \n');
S=4;
VR=[(D1+5)/(D2+5)]*[(100-S)/100];
N2=VR*N1;
printf('Velocity Ratio= %2.2f',VR);
printf('\n');
printf('Speed of driven shaft= %2.2f RPM',N2);
printf('\n\n');