summaryrefslogtreecommitdiff
path: root/575/CH2/EX2.5.2
diff options
context:
space:
mode:
Diffstat (limited to '575/CH2/EX2.5.2')
-rwxr-xr-x575/CH2/EX2.5.2/2_5_2.jpgbin0 -> 114428 bytes
-rwxr-xr-x575/CH2/EX2.5.2/2_5_2.sce12
2 files changed, 12 insertions, 0 deletions
diff --git a/575/CH2/EX2.5.2/2_5_2.jpg b/575/CH2/EX2.5.2/2_5_2.jpg
new file mode 100755
index 000000000..e840dfddf
--- /dev/null
+++ b/575/CH2/EX2.5.2/2_5_2.jpg
Binary files differ
diff --git a/575/CH2/EX2.5.2/2_5_2.sce b/575/CH2/EX2.5.2/2_5_2.sce
new file mode 100755
index 000000000..242fae755
--- /dev/null
+++ b/575/CH2/EX2.5.2/2_5_2.sce
@@ -0,0 +1,12 @@
+clc
+pathname=get_absolute_file_path('2_5_2.sce')
+filename=pathname+filesep()+'252.sci'
+exec(filename)
+//Here We used standard library functions mean and st_deviation
+ybar=mean(y);
+sy=st_deviation(y);
+defaultvalue=ybar+3*sy+1;
+printf("the maximum allowed value of y i.e. bad batches in a week is %d \n", defaultvalue)
+disp("in case of 2 standard deviations");
+defaultvalue=ybar+2*sy+1;
+printf("the limiting value of y i.e. bad batches in a week is %d",defaultvalue) \ No newline at end of file