summaryrefslogtreecommitdiff
path: root/1844/CH2/EX2.1/2Q1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1844/CH2/EX2.1/2Q1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1844/CH2/EX2.1/2Q1.sce')
-rw-r--r--1844/CH2/EX2.1/2Q1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1844/CH2/EX2.1/2Q1.sce b/1844/CH2/EX2.1/2Q1.sce
new file mode 100644
index 000000000..648e98e50
--- /dev/null
+++ b/1844/CH2/EX2.1/2Q1.sce
@@ -0,0 +1,23 @@
+clc
+//intialising values
+n=8
+RR1=2.322
+RR2=2.346
+RR3=2.352
+RR4=2.306
+RR5=2.312
+RR6=2.300
+RR7=2.306
+RR8=2.326
+
+M= (RR1+RR2+RR3+RR4+RR5+RR6+RR7+RR8)/n // Mean
+
+K= (RR1-M)^2+(RR2-M)^2+(RR3-M)^2+(RR4-M)^2+(RR5-M)^2+(RR6-M)^2+(RR7-M)^2+(RR8-M)^2 // Sum of squares of difference between mean and observations
+
+Es= 0.6745*sqrt(K/(n-1)) //Probable Error of single observatio
+Em= Es/sqrt(n) // Probable error of mean
+
+//Results
+
+printf('Es = +/- %f m\n',Es)
+printf(' Em = +/- %f m',Em)