summaryrefslogtreecommitdiff
path: root/2732/CH6/EX6.12/Ex6_12.sce
blob: 556baf39921ea34d6e1529066bc5493e07ca77bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc
// initialization of variables
clear
hp=300 //h.p.
N1=30 //rpm
N2=30000 //rpm
fs=600 //kg/cm^2
// calculations
T1=4500*hp*100/(2*%pi*N1)
T2=T1/1000
D1=16*T1/(%pi*fs)
D1=D1^(1/3)
D2=16*T2/(%pi*fs)
D2=D2^(1/3)
// results
printf('Diameters required are %.1f, %.1f cm',D1,D2)

// wrong calculations in the text