blob: 0104a021e6e983365f09ade898adb51e76aeaf6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
D1=0.3;
D2=0.2;
C=3;
L1=[(22/7)*(1/2)*(D1+D2)]+[((D1+D2)^2)/(4*C)]+(2*C);
L2=[(22/7)*(1/2)*(D1+D2)]+[((D1-D2)^2)/(4*C)]+(2*C);
L=L2-L1;
printf('The belt length is to be reduced by %2.4f mm',(0-L)*1000);
printf('\n');
|