summaryrefslogtreecommitdiff
path: root/291/CH2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /291/CH2
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '291/CH2')
-rwxr-xr-x291/CH2/EX2.4a/eg2_4a.sce10
-rwxr-xr-x291/CH2/EX2.5a/eg2_5a.sce16
2 files changed, 13 insertions, 13 deletions
diff --git a/291/CH2/EX2.4a/eg2_4a.sce b/291/CH2/EX2.4a/eg2_4a.sce
index a6ca40930..948568532 100755
--- a/291/CH2/EX2.4a/eg2_4a.sce
+++ b/291/CH2/EX2.4a/eg2_4a.sce
@@ -1,5 +1,5 @@
-cars = [448162 404192 368327 318308 272122 260486 249128 234936 218540 207977];
-interval1 = mean(cars) - (1.5*st_deviation(cars));
-interval2 = mean(cars) + (1.5*st_deviation(cars));
-data = 100*5/9;
-disp(interval2, , "to" , interval1, "Atleast 55.55% of the data lies in the interval" );
+cars = [448162 404192 368327 318308 272122 260486 249128 234936 218540 207977];
+interval1 = mean(cars) - (1.5*stdev(cars));
+interval2 = mean(cars) + (1.5*stdev(cars));
+data = 100*5/9;
+disp(interval2, , "to" , interval1, "Atleast 55.55% of the data lies in the interval" ); \ No newline at end of file
diff --git a/291/CH2/EX2.5a/eg2_5a.sce b/291/CH2/EX2.5a/eg2_5a.sce
index f628c5447..54177d474 100755
--- a/291/CH2/EX2.5a/eg2_5a.sce
+++ b/291/CH2/EX2.5a/eg2_5a.sce
@@ -1,8 +1,8 @@
-data = [90 91 94 83 85 85 87 88 72 74 74 75 77 77 78 60 62 63 64 66 66 52 55 55 56 58 43 46];
-disp("According to the empirical rule")
-disp("68% of the data lies between")
-disp(mean(data)+st_deviation(data), "and", mean(data)-st_deviation(data))
-disp("95% of the data lies between")
-disp(mean(data)+(2*st_deviation(data)), "and", mean(data)-(2*st_deviation(data)) )
-disp("99.7% of the data lies between")
-disp(mean(data)+(3*st_deviation(data)), "and", mean(data)-(3*st_deviation(data))) \ No newline at end of file
+data = [90 91 94 83 85 85 87 88 72 74 74 75 77 77 78 60 62 63 64 66 66 52 55 55 56 58 43 46];
+disp("According to the empirical rule")
+disp("68% of the data lies between")
+disp(mean(data)+stdev(data), "and", mean(data)-stdev(data))
+disp("95% of the data lies between")
+disp(mean(data)+(2*stdev(data)), "and", mean(data)-(2*stdev(data)) )
+disp("99.7% of the data lies between")
+disp(mean(data)+(3*stdev(data)), "and", mean(data)-(3*stdev(data))) \ No newline at end of file