diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1376/CH1/EX1.21/1_21.sci | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1376/CH1/EX1.21/1_21.sci')
-rwxr-xr-x | 1376/CH1/EX1.21/1_21.sci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1376/CH1/EX1.21/1_21.sci b/1376/CH1/EX1.21/1_21.sci new file mode 100755 index 000000000..82c5fc18d --- /dev/null +++ b/1376/CH1/EX1.21/1_21.sci @@ -0,0 +1,10 @@ +//1.21
+clc;
+X_mean=(15+20+25+30+35+45)/6;
+printf("The sample mean of the temperature=%.2f degree C",X_mean)
+Y_mean=(1.9+1.93+1.97+2+2.01+2.01+1.94+1.95+1.97+2.02+2.02+2.04)/12*10^-6;
+printf("\nThe sample mean of the faliure=%.6f failures/hour",Y_mean)
+disp('from these values we get')
+a=1.80*10^-6;
+b=0.00226;
+disp('Y=1.80+0.00226x is the required least square line')
\ No newline at end of file |