summaryrefslogtreecommitdiff
path: root/3594/CH11/EX11.8/Ex11_8.sce
blob: 7fae50496e31b7eeee4767033ac1168e056ee15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

clc
//given
Td=23
Ta=19
Tb=20
Tc=22
k=Td*Ta/(Tb*Tc)
//using componendo and dividendo, Nc=0 and reducing we get
a=1/k-1//a=Nd/Ne
b=1/a//- denotes opposite direction
d=5280*12/(%pi*5*b)
p=ceil(d)
printf("\nThe diameter must be = %.1f in\nThe numbers of teeths are therefore suitable for a cyclometer for bicycle with %.f inches wheels",d,p)