summaryrefslogtreecommitdiff
path: root/1376/CH1/EX1.21/1_21.sci
diff options
context:
space:
mode:
Diffstat (limited to '1376/CH1/EX1.21/1_21.sci')
-rwxr-xr-x1376/CH1/EX1.21/1_21.sci10
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