diff options
Diffstat (limited to '2360/CH2/EX2.1/ex2_1.sce')
-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");
|