summaryrefslogtreecommitdiff
path: root/278/CH14/EX14.8/ex_14_8.sce
blob: e1b58901cf0c36bd2bb5c5df5fd184e0226dd743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//determine dia of the shaft
clc
//solution
//given
//ref fig 14.4
D=1500//mm
R=750//mm
T1=5400//N
T2=1800//N
L=400//mm
t=42//N/mm^2
T=(T1-T2)*R//N-mm
W=T1+T2//N
M=W*L//N-mm
//let d be dia of shaft
Te=sqrt(M^2 + T^2)//N-mm
//Te=(%pi/16)*t*d^3
d=(Te/8.25)^(1/3)//mm
printf("the dia of shaft is,%f mm",d)