summaryrefslogtreecommitdiff
path: root/2915/CH4/EX4.7/Ex4_7.sce
blob: e4cea151e69341ab1cb97031eede5e0b3f2baaca (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
clc,clear
//Example 4.7
//To determine the length of the belt around the pulleys

AE= 5 //radius of first pulley in cm
BF= 8 //radius of second pulley in cm
AB=15 //distance between centre of pulleys in cm

//from the figure
CF=AE //parallel side of rectangle ACFE
BC= BF- CF
AC = sqrt(AB^2 - BC^2) //by pythagoras theorem
EF=AC//parallel side of rectangle ACFE

angle_EAC = %pi/2
angle_BAC = asin(BC/AB)
angle_DAE = %pi -  angle_EAC - angle_BAC
angle_ABC = angle_DAE //AE and BF are parallel
angle_GBF= %pi - angle_ABC

arc_DE=AE*angle_ABC //length of arc DE
arc_FG=BF*angle_GBF //length of arc FG
L=2*(arc_DE + EF + arc_FG) //length of belt
printf('Length of belt around pulley = %f cm',L)