summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.31/3_31.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /569/CH3/EX3.31/3_31.sci
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '569/CH3/EX3.31/3_31.sci')
-rwxr-xr-x569/CH3/EX3.31/3_31.sci17
1 files changed, 17 insertions, 0 deletions
diff --git a/569/CH3/EX3.31/3_31.sci b/569/CH3/EX3.31/3_31.sci
new file mode 100755
index 000000000..6199f0620
--- /dev/null
+++ b/569/CH3/EX3.31/3_31.sci
@@ -0,0 +1,17 @@
+//to point out the reading that can be rejected by chavenets criterion
+
+clc;
+x=[5.3 5.73 6.77 5.26 4.33 5.45 6.09 5.64 5.81 5.75]*10^-3;
+d=[-.313 .117 1.157 -.353 -1.283 -.163 .477 .027 .197 .137]*10^-3;
+n=10;
+X=sum(x)/n;
+s=sqrt(sum(d^2)/(n-1));
+a=abs(d)/s;disp(a);
+
+
+for i=1:10,
+
+if a(i)>1.96 then
+ disp(x(i),'rejected value');
+end
+ end \ No newline at end of file