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 | |
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')
-rwxr-xr-x | 1376/CH1/EX1.17/1_17.sci | 12 | ||||
-rwxr-xr-x | 1376/CH1/EX1.18/1_18.sci | 7 | ||||
-rwxr-xr-x | 1376/CH1/EX1.19/1_19.sci | 12 | ||||
-rwxr-xr-x | 1376/CH1/EX1.20/1_20.sci | 16 | ||||
-rwxr-xr-x | 1376/CH1/EX1.21/1_21.sci | 10 | ||||
-rwxr-xr-x | 1376/CH1/EX1.22/1_22.sci | 9 | ||||
-rwxr-xr-x | 1376/CH1/EX1.23/1_23.sci | 10 |
7 files changed, 76 insertions, 0 deletions
diff --git a/1376/CH1/EX1.17/1_17.sci b/1376/CH1/EX1.17/1_17.sci new file mode 100755 index 000000000..fda51e9ad --- /dev/null +++ b/1376/CH1/EX1.17/1_17.sci @@ -0,0 +1,12 @@ +//1.17
+clc;
+Y=90;
+X=89;
+Error_absolute=Y-X;
+disp(Error_absolute,'absolute Error')
+Error_relative=(Y-X)*100/Y;
+disp(Error_relative,'relative Error (percent)=')
+Accuracy_relative=1-Error_relative;
+disp(Accuracy_relative,'Accuracy relative=')
+Accuracy_percentage=100*Accuracy_relative;
+disp(Accuracy_percentage,'Accuracy(percentage)=')
\ No newline at end of file diff --git a/1376/CH1/EX1.18/1_18.sci b/1376/CH1/EX1.18/1_18.sci new file mode 100755 index 000000000..37f2dc8b7 --- /dev/null +++ b/1376/CH1/EX1.18/1_18.sci @@ -0,0 +1,7 @@ +//1.18
+clc;
+S=98+100+102+98+100+100+104+104+105+97;
+n=10;
+Avg=S/n;
+P=1-abs((104-Avg)/Avg);
+printf("Precision for the 8th reading=%.2f",P)
diff --git a/1376/CH1/EX1.19/1_19.sci b/1376/CH1/EX1.19/1_19.sci new file mode 100755 index 000000000..ca1ab0beb --- /dev/null +++ b/1376/CH1/EX1.19/1_19.sci @@ -0,0 +1,12 @@ +//1.19
+clc;
+V=10;
+I=20*10^-3;
+RI=50;
+R=(V/I)-RI;
+printf("The value of Resistance=%.0f ohm",R)
+dV=0.2;
+dI=1*10^-3;
+dRI=5;
+dR=(dV/I)+(V*dI/I^2)+(dRI)
+printf("\nLimiting error of resistance=%.0f ohm",dR)
diff --git a/1376/CH1/EX1.20/1_20.sci b/1376/CH1/EX1.20/1_20.sci new file mode 100755 index 000000000..926975739 --- /dev/null +++ b/1376/CH1/EX1.20/1_20.sci @@ -0,0 +1,16 @@ +//1.20
+clc;
+R0=5;
+a=0.004;
+T=30;
+R=R0*(1+a*(T-20));
+printf("Resistance of the wire=%.1f ohm",R)
+//Let (dR/dR0) =b ; (dR/da)=c ; (dR/dT)=d
+b=(1+a*(T-20));
+c=R0*(T-20);
+d=R0*a;
+ur0=5*0.003;
+ua=0.004*0.01;
+ut=1;
+uR=(b^2*ur0^2+c^2*ua^2+d^2*ut^2)^0.5;
+printf("Uncertanity in resistance=%.2f ohm",uR)
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 diff --git a/1376/CH1/EX1.22/1_22.sci b/1376/CH1/EX1.22/1_22.sci new file mode 100755 index 000000000..47b51915e --- /dev/null +++ b/1376/CH1/EX1.22/1_22.sci @@ -0,0 +1,9 @@ +//1.22
+clc;
+n=2;
+k=1;
+dof=n-k;
+chi_square=(3-5)^2/5+(7-5)^2/5;
+disp(chi_square,'Chi square value=')
+disp('From the dof and chi square value we find P=0.22')
+disp('Hence there are 22% chance that the distribution is just the result of random fluctuations and the coin may be unweighted')
\ No newline at end of file diff --git a/1376/CH1/EX1.23/1_23.sci b/1376/CH1/EX1.23/1_23.sci new file mode 100755 index 000000000..bc40a62c1 --- /dev/null +++ b/1376/CH1/EX1.23/1_23.sci @@ -0,0 +1,10 @@ +//1.23
+clc;
+X_mean=501*1/5;
+printf("\nAssigned Value=%.1f V",X_mean)
+sigma={(1/(5-1))*((100.2-X_mean)^2+(100.3-X_mean)^2+(100.2-X_mean)^2+(100.2-X_mean)^2+(100.1-X_mean)^2)}^0.5;
+//disp('For 95% confidance level student factor t is 2.78')
+t=2.78;
+n=5;
+Ur=t*sigma/(n^0.5);
+printf("\nUncertanity=%.3f V",Ur)
|