diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2360/CH2/EX2.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2360/CH2/EX2.1')
-rwxr-xr-x | 2360/CH2/EX2.1/ex2_1.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2360/CH2/EX2.1/ex2_1.sce b/2360/CH2/EX2.1/ex2_1.sce new file mode 100755 index 000000000..3fea4cb0d --- /dev/null +++ b/2360/CH2/EX2.1/ex2_1.sce @@ -0,0 +1,15 @@ +// Exa 2.1
+format('v',6);clc;clear;close;
+// Given data
+// Values of measurements
+x1 = 49;
+x2 = 51;
+x3 = 52;
+x4 = 50;
+x5 = 49;
+n = 5;// numbers of reading
+Xn_bar = (x1+x2+x3+x4+x5)/n;// average value for the set of measurements
+// For n = 3
+P = 1 - abs( (x3-Xn_bar)/x3);// the value of third measurement
+P = P * 100;// in %
+disp(P,"The precision of the 3rd measurement in % is");
|