summaryrefslogtreecommitdiff
path: root/149/CH35/EX35.12
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /149/CH35/EX35.12
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 '149/CH35/EX35.12')
-rwxr-xr-x149/CH35/EX35.12/ex12.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/149/CH35/EX35.12/ex12.sce b/149/CH35/EX35.12/ex12.sce
new file mode 100755
index 000000000..5a9a1a347
--- /dev/null
+++ b/149/CH35/EX35.12/ex12.sce
@@ -0,0 +1,30 @@
+clear
+clc
+n=9
+disp('first of row denotes the different values of sample ')
+A(1,:)=[45 47 50 52 48 47 49 53 51];
+disp('the second row denotes the corresponding deviation ')
+for i=1:9
+ A(2,i)=A(1,i)-48;
+end
+disp('the third row denotes the corresponding square of deviation')
+for i=1:9
+ A(3,i)=A(2,i)^2;
+end
+disp('the sum of second row elements =')
+a=0;
+for i=1:9
+ a=a+A(2,i);
+end
+a
+disp('the sum of third row elements ")
+b=0;
+for i=1:9
+ b=b+A(3,i);
+end
+b
+disp('let m be the mean ')
+m=48+a/n
+disp('let d be the standard deviation ')
+d=((b/n)-(a/n)^2)^0.5
+t=(m-47.5)*(n-1)^0.5/d \ No newline at end of file