summaryrefslogtreecommitdiff
path: root/683/CH4/EX4.4/MF_4.sce
blob: 1a43600866ad0d6092a2b85ea9922262f787e398 (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
25
26
27
28
29
30
// sum 4-3
clc;
clear;
d=30;
Es=0.025;
Ei=0;
es=11*10^-3;
ei=-5*10^-3;
//Shaft dia is D
D=d+es;
//Lower limit for hole is LLH
//Upper limit for hole is ULH
//Upper limit for shaft is ULS
//Lower limit for shaft is LLS
ULH=d+Es;
LLH=d+Ei;
ULS=d+es;
LLS=d+ei;
//Maximum interference is Cmax
//minimum interference is Cmin
Cmax=ULH-LLS;
Cmin=ULS-LLH;;

  // printing data in scilab o/p window
  printf("ULH is %0.3f mm ",ULH);
  printf("\n LLH is %0.3f mm ",LLH);
  printf("\n ULS is %0.3f mm ",ULS);
  printf("\n LLS is %0.3f mm ",LLS);
  printf("\n Cmax is %0.3f mm ",Cmax);
  printf("\n Cmin is %0.3f mm ",Cmin);