summaryrefslogtreecommitdiff
path: root/876/CH2/EX2.15/Ex2_15t.txt
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /876/CH2/EX2.15/Ex2_15t.txt
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 '876/CH2/EX2.15/Ex2_15t.txt')
-rwxr-xr-x876/CH2/EX2.15/Ex2_15t.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/876/CH2/EX2.15/Ex2_15t.txt b/876/CH2/EX2.15/Ex2_15t.txt
new file mode 100755
index 000000000..ae71a5a5a
--- /dev/null
+++ b/876/CH2/EX2.15/Ex2_15t.txt
@@ -0,0 +1,20 @@
+//caption:find arithmetic mean,standard deviation and probable error of onereading
+//Ex2.15
+clc
+clear
+close
+x1=30.30//level of liquid(in mm)
+x2=30.25//level of liquid(in mm)
+x3=30.40//level of liquid(in mm)
+x4=30.00//level of liquid(in mm)
+n=4//numberof readings
+x=(x1+x2+x3+x4)/n
+disp(x,'arithmatic mean(in mm)=')
+d1=x1-x
+d2=x2-x
+d3=x3-x
+d4=x4-x
+S=((d1^2+d2^2+d3^2+d4^2)/(n-1))^0.5
+disp(S,'standard deviation(in mm)=')
+P=0.6745*S
+disp(P,'probable error(in mm)=') \ No newline at end of file