summaryrefslogtreecommitdiff
path: root/569/CH3/EX3.23
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.23
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.23')
-rwxr-xr-x569/CH3/EX3.23/3_23.sci16
1 files changed, 16 insertions, 0 deletions
diff --git a/569/CH3/EX3.23/3_23.sci b/569/CH3/EX3.23/3_23.sci
new file mode 100755
index 000000000..878b1ca51
--- /dev/null
+++ b/569/CH3/EX3.23/3_23.sci
@@ -0,0 +1,16 @@
+//to find the arithematic mean, maen deviation,standard deviation, prpobable error of 1 reading, standard deviation and probable error of mean, standard deviation of standard deviation
+
+clc;
+T=[397 398 399 400 401 402 403 404 405];
+f=[1 3 12 23 37 16 4 2 2];
+Tf=sum(abs(T.*f));
+disp(Tf/sum(f),'mean temp(deg C)');
+d=[-3.78 -2.78 -1.78 -.78 .22 1.22 2.22 3.22 4.22];
+disp(sum(f.*d)/sum(f),'mean deviation(deg C)');
+disp(sqrt(sum(f.*d^2)/sum(f)),'standard deviation(deg C)');
+disp(.6745*sqrt(sum(f.*d^2)/sum(f)),'probable error of 1 reading(deg C)');
+disp((.6745*sqrt(sum(f.*d^2)/sum(f)))/sqrt(sum(f)),'probable error of mean(deg C)');
+disp((sqrt(sum(f.*d^2)/sum(f)))/sqrt(sum(f)),'standard deviation of mean(deg C)');
+disp((sqrt(sum(f.*d^2)/sum(f)))/sqrt(sum(f)*2),'standard deviation of standard deviation(deg C)');
+
+ \ No newline at end of file