summaryrefslogtreecommitdiff
path: root/1835/CH2/EX2.3/Ex2_3.sce
blob: ef6795950595f82e675fc5fbda9b24c29b045f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//CHAPTER 2 ILLUSTRATION 3 PAGE NO:58
//TITLE:TRANSMISSION OF MOTION AND POWER BY BELTS AND PULLEYS
clc
clear
//==============================================================================
//input
d1=30//diameter of 1st shaft in cm
d2=50//diameter 2nd shaft in cm
pi=3.141
c=500//centre distance between the shafts in cm
//==============================================================================
//calculation
L1=((d1+d2)*pi/2)+(2*c)+((d1+d2)^2)/(4*c)//lenth of cross belt
L2=((d1+d2)*pi/2)+(2*c)+((d1-d2)^2)/(4*c)//lenth of open belt
r=L1-L2//remedy
//==============================================================================
//OUTPUT
printf('length of cross belt is %3.3fcm \n length of open belt is %3.3f cm \n the length of the belt to be shortened is %3.0f cm',L1,L2,r)