summaryrefslogtreecommitdiff
path: root/3513/CH6/EX6.7/ch6_7.sce
blob: 17932af52add92759fb417cb2a93b4b9c600ac13 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//Compute rejections percentage
//page no 117
clear
clc;
n = 2;
K = 2;
R1 = 0.81;
X = 27.635;
USL = 1.207;
LSL = 1.033;
d2 = 1.128;
A2 = 1.88;
D3 = 0.0;
D4 = 3.27;
X2=X/K;
X2=R1/K;
sd=R1/d2
mprintf("\(a) Standard Deviation = %.2f \n",sd);
UNTL = X2+3*sd;
LNTL = X2-3*sd;
mprintf("\UNTL = %.2f \n",UNTL);
mprintf("\LNTL = %.2f \n",LNTL);
CL = X2;
mprintf("\CL = %.2f \n",CL);
//b) The percentage of rejection
Z =(1.033-1.1054)/sd;
mprintf("\Z = %.2f \n",Z);
pr = 0.59; //probability
mprintf("\n Hence probability = %.2f \n",pr);
T=USL-LSL;
T2=6*sd;
mprintf("\n (c) 0.1722 (T2) < 0.174(T) the process is capable of meeting the specification limits.");
//(d)
X2=1.12;
//Control limits for R-chart
UCL = D4*R1;
mprintf("\ (b) UCL = %.2f \n",UCL);
LCL = D3*R1;
mprintf("\LCL = %.2f \n",LCL);
CL = R1;
mprintf("\CL = %.2f \n",CL);
//Control limits for X -chart
UCL = X2+A2*R1;
mprintf("\UCL = %.2f \n",UCL);
LCL = X2-A2*R1;
mprintf("\LCL = %.2f \n",LCL);
CL = X2;
mprintf("\CL = %.2f \n",CL);