diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH3 | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2 Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip |
Diffstat (limited to '3871/CH3')
-rw-r--r-- | 3871/CH3/EX3.1/Ex3_1.sce | 16 | ||||
-rw-r--r-- | 3871/CH3/EX3.10/Ex3_10.sce | 24 | ||||
-rw-r--r-- | 3871/CH3/EX3.11/Ex3_11.sce | 15 | ||||
-rw-r--r-- | 3871/CH3/EX3.12/Ex3_12.sce | 19 | ||||
-rw-r--r-- | 3871/CH3/EX3.13/Ex3_13.sce | 25 | ||||
-rw-r--r-- | 3871/CH3/EX3.14/Ex3_14.sce | 39 | ||||
-rw-r--r-- | 3871/CH3/EX3.15/Ex3_15.sce | 22 | ||||
-rw-r--r-- | 3871/CH3/EX3.16/Ex3_16.sce | 22 | ||||
-rw-r--r-- | 3871/CH3/EX3.17/Ex3_17.sce | 23 | ||||
-rw-r--r-- | 3871/CH3/EX3.18/Ex3_18.sce | 34 | ||||
-rw-r--r-- | 3871/CH3/EX3.19/Ex3_19.sce | 33 | ||||
-rw-r--r-- | 3871/CH3/EX3.2/Ex3_2.sce | 13 | ||||
-rw-r--r-- | 3871/CH3/EX3.20/Ex3_20.sce | 24 | ||||
-rw-r--r-- | 3871/CH3/EX3.21/Ex3_21.sce | 28 | ||||
-rw-r--r-- | 3871/CH3/EX3.22/Ex3_22.sce | 39 | ||||
-rw-r--r-- | 3871/CH3/EX3.23/Ex3_23.sce | 42 | ||||
-rw-r--r-- | 3871/CH3/EX3.24/Ex3_24.sce | 43 | ||||
-rw-r--r-- | 3871/CH3/EX3.3/Ex3_3.sce | 17 | ||||
-rw-r--r-- | 3871/CH3/EX3.4/Ex3_4.sce | 20 | ||||
-rw-r--r-- | 3871/CH3/EX3.5/Ex3_5.sce | 21 | ||||
-rw-r--r-- | 3871/CH3/EX3.6/Ex3_6.sce | 16 | ||||
-rw-r--r-- | 3871/CH3/EX3.7/Ex3_7.sce | 18 | ||||
-rw-r--r-- | 3871/CH3/EX3.9/Ex3_9.sce | 25 |
23 files changed, 578 insertions, 0 deletions
diff --git a/3871/CH3/EX3.1/Ex3_1.sce b/3871/CH3/EX3.1/Ex3_1.sce new file mode 100644 index 000000000..eb2112613 --- /dev/null +++ b/3871/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,16 @@ +//===========================================================================
+//chapter 3 example 1
+
+clc;
+clear all;
+
+//variable declaration
+Am = 10.25; //measured value in Ω
+A = 10.22; //True value in Ω
+
+//calculations
+dA = Am-A; //absolute error in Ω
+
+//result
+mprintf("abslotue error = %3.2f Ω",dA);
+
diff --git a/3871/CH3/EX3.10/Ex3_10.sce b/3871/CH3/EX3.10/Ex3_10.sce new file mode 100644 index 000000000..567b91878 --- /dev/null +++ b/3871/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,24 @@ +//===========================================================================
+//chapter 3 example 10
+
+clc;clear all;
+
+//variable declaration
+R = 100; //resistance in Ω
+dR = 0.2; //resistancce error in Ω(ranging + to -)
+I = 2; //current in A
+dI = 0.01; //error in current in A(ranging + to -)
+
+//calaculatons
+eR = (dR/(R))*100; //percentage limiting error to resistance in %(ranging + to -)
+eI = (dI/(I))*100; //percentage limiting error to current in %(ranging + to -)
+P = (I^2)*R; //power dissioation in W
+eP = (2*eI)+eR; //worst ossible combination of errors the limiting error in the power dissipation in %
+p = (eP*10^-2)*P; //error in power in watts
+P1 = P+p; //power dissipation in W
+P2 =P-p; //power dissipation in W
+
+//result
+mprintf("limiting error = %3.2f percentage',eP);
+mprintf("\npower dissipation %3.2f W %3.2f W",P2,P1);
+
diff --git a/3871/CH3/EX3.11/Ex3_11.sce b/3871/CH3/EX3.11/Ex3_11.sce new file mode 100644 index 000000000..114fa25cd --- /dev/null +++ b/3871/CH3/EX3.11/Ex3_11.sce @@ -0,0 +1,15 @@ +//===========================================================================
+//chapter 3 example 11
+
+clc;clear all;
+
+//variable declaration
+V = 200; //full-scale reading i V
+n = 100; //number of divivsions of scale
+
+//calculations
+n1 = V/(n); //1 scale division in V
+R = n1/(5); //1/5 th of scale division in V
+
+//result
+mprintf("resolution = %3.2f V",R);
diff --git a/3871/CH3/EX3.12/Ex3_12.sce b/3871/CH3/EX3.12/Ex3_12.sce new file mode 100644 index 000000000..0119b6f19 --- /dev/null +++ b/3871/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,19 @@ +//===========================================================================
+//chapter 3 example 12
+
+clc;clear all;
+
+//variable declaration
+u = 150; //capacitance in uF
+du = 2.4; //capacitance in uF
+v = 120; //capacitance in uF
+dv = 1.5; //capacitance in uF
+
+//calculations
+y = u+v; //resultant capacitance when capacitors are connectedd in parallel in uF
+dy = du+dv; //limiting error in uF(ranging + to -)
+er = (dy/(y))*100; //relative limiting error in %(ranging + to -)
+
+//result
+mprintf("limiting error of the resultant capacitance = %3.2f percentage',er);
+
diff --git a/3871/CH3/EX3.13/Ex3_13.sce b/3871/CH3/EX3.13/Ex3_13.sce new file mode 100644 index 000000000..c76ab75c4 --- /dev/null +++ b/3871/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,25 @@ +//===========================================================================
+//chapter 3 example 13
+clc;clear all;
+
+//variable declaration
+R1 = 1000; //resistance in Ω
+R2 = 500; //resistance in Ω
+eR1 = 1; //error resistance
+eR2 = 1; //error resistance
+
+//calculations
+R = (R1*R2)/(R1+R2); //resistance in Ω
+X = R1*R2;
+Y = R1+R2;
+dX = (eR1+eR2); //error in X
+//dY = (dR1/Y)+(dR2/Y);
+//dY = (R1/Y)*(dR1/R1)+((R2/Y)*(dR2/R2)
+dY = ((R1/(Y))*(eR1))+((R2/(Y))*(eR2)); //error in Y
+eP = dX+dY; //percentage error in equivaent parallel resistance in %
+e = R*(eP/(100)); //error(maximum ossible) in equivalent parallel resistance in Ω
+
+
+//result
+mprintf("percentage error = %3.2f percentage",eP);
+mprintf("\nerror in equivalent parallel resistance = %3.2f Ω",e);
diff --git a/3871/CH3/EX3.14/Ex3_14.sce b/3871/CH3/EX3.14/Ex3_14.sce new file mode 100644 index 000000000..0ceb1d0b7 --- /dev/null +++ b/3871/CH3/EX3.14/Ex3_14.sce @@ -0,0 +1,39 @@ +//===========================================================================
+//chapter 3 example 14
+
+clc;clear all;
+
+//variable declaration
+R1 = 200; //resistancce in Ω
+R2 = 100; //resistancce in Ω
+R3 = 50; //resistancce in Ω
+dR1 = 5; //change in resistancce(dR1/R1) in %
+dR2 = 5; //change in resistancce(dR2/R2) in %
+dR3 = 5; //change in resistancce(dR3/R3) in %
+y1 = 20000;
+y2 = 5000;
+y3 = 10000;
+
+
+//calculations
+Rse = R1+R2+R3; //equivalent resistance in Ω
+R = ((R1/(Rse))*(dR1))+((R2/(Rse))*(dR2))+((R3/(Rse))*(dR3));
+e = Rse*(R/(100)); //relative limiting error of series equivalent in Ω
+X = R1*R2*R3;
+Y = (R2*R3)+(R1*R3)+(R1*R2);
+RP = X/(Y); //equivalent resistance in Ω
+eX = dR1+dR2+dR3; //error in X in %
+dy1 = dR1+dR2; //error(dy1/y1) n y1 in %
+dy2 = dR2+dR3; //error(dy2/y2) in y2 in %
+dy3 = dR3+dR1; //error(dy3/y3) in y3 in %
+eY = ((y1/(Y))*(dy1))+((y2/(Y))*(dy2))+((y3/(Y))*(dy3)); //percentage error in %
+pemax = eX+eY; //percentage error (maximum possible) in equivalent parallel resistance in %
+emax = RP*(pemax/(100)); //error maximum possible in equivalent parallel resistance in Ω
+
+//result
+mprintf("equivalent resistance = %3.2f Ω",Rse);
+mprintf("\nrelative limiting error of series resistance = %3.2f percentage",R);
+mprintf("\nrelative limiting error of series equivalent = %3.2f Ω",e);
+mprintf("\npercentage error (maximum possible) in equivalent parallel resistance= %3.2f percetage",pemax);
+mprintf("\nerror maximum possible in equivalent parallel resistance =%3.4f Ω',emax);
+
diff --git a/3871/CH3/EX3.15/Ex3_15.sce b/3871/CH3/EX3.15/Ex3_15.sce new file mode 100644 index 000000000..3161d5be4 --- /dev/null +++ b/3871/CH3/EX3.15/Ex3_15.sce @@ -0,0 +1,22 @@ +//===========================================================================
+//chapter 3 example 15
+
+clc;clear all;
+
+//variable decelaration
+er = 0.015; //limiting error
+V = 100; //range of voltmeter in V
+I = 150; //range of ammeter in mA
+V1 = 70; //magnitude of voltage being measured in V
+I1 = 80; //magnitude of current being measured in mA
+
+//calculations
+dV = er*V; //magnitude(dV/V of limiting error of the voltmeter in V
+eV = (dV/(V1))*100; //percentage(dI/I) limitng error at this voltage in %
+dI = er*I; //magnitude of limitng error off the ammeter in mA
+eI = (dI/(I1))*100; //percentage limitng error at this current in %
+P = V1*(I1/(1000)); //power in W
+dPx = eV+eI; //relative limiting error(dPx/Px) in power measurement in %
+
+//result
+mprintf("relative limitng error in power measurement= %3.4f percentage",dPx);
diff --git a/3871/CH3/EX3.16/Ex3_16.sce b/3871/CH3/EX3.16/Ex3_16.sce new file mode 100644 index 000000000..bdebb00e1 --- /dev/null +++ b/3871/CH3/EX3.16/Ex3_16.sce @@ -0,0 +1,22 @@ +
+//===========================================================================
+//chapter 3 example 16
+
+clc;clear all;
+
+//variable declaration
+E =200; //limiting voltage in V
+R = 1000; //resistance in Ω
+eE = 1; //relative limiting error(dE/E) in %
+eR = 5; //relative limting error(dR/R) in %
+
+//calculations
+P = (E**2)/(R); //normal power consumed in W
+eP = ((2*eE)+eR); //relative limiting error(dP/P) in measurement of power in %
+dP = P*(eP/(100)); //limitng error of power in watts
+
+//result
+mprintf("Normal power consumed = %3.2f W",P);
+mprintf("\nrelative limitng error in power measurement= %3.2f percentage rangng +eP to -eP",eP);
+mprintf("\nlimitng error of power = %3.2f percentage",dP);
+
diff --git a/3871/CH3/EX3.17/Ex3_17.sce b/3871/CH3/EX3.17/Ex3_17.sce new file mode 100644 index 000000000..2623a1f4b --- /dev/null +++ b/3871/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,23 @@ +//===========================================================================
+//chapter 3 example 17
+clc;
+clear all;
+
+//variable declaration
+R1 = 500; //resistance in Ω
+R2 = 615; //resistance in Ω
+R3 = 100; //resistance in Ω
+dR1 = 1; //limiting error(dR1/R1) in %
+dR2 = 1; //limiting error(dR1/R1) in %
+dR3 = 0.5; //limiting error(dR1/R1) in %
+
+//calculations
+R4 = (R1*R2)/(R3); //unknown resistance in Ω
+dR4 =dR1+dR2+dR3; //relative error of unknown resistance in % ranging - to +
+e = R4*(dR4/(100)); //limitng error in Ω
+
+//result
+mprintf("unknown resistance = %.2f Ω",R4);
+mprintf("\nrelative error of unknown resistance ranging - to + = %3.2f percentage ",dR4);
+mprintf("\nlimitng error = %3.2f Ω",e);
+
diff --git a/3871/CH3/EX3.18/Ex3_18.sce b/3871/CH3/EX3.18/Ex3_18.sce new file mode 100644 index 000000000..251db7ea3 --- /dev/null +++ b/3871/CH3/EX3.18/Ex3_18.sce @@ -0,0 +1,34 @@ +//===========================================================================
+//chapter 3 example 18
+
+clc;clear all;
+
+//variable declartaion
+r = 0.5*10^-3; //in mm
+p1 = 200; //in Pa
+p2 = 150; //in Pa
+Q = 4*10^-7; //in m**3/s
+l = 1; //length in m
+dr = 0.01;
+dp1 = 3;
+dp2 = 2
+dQ =0
+dl =0;
+
+//calculations
+u = ((%pi)*((r^4)*((p1*10^3)-(p2*10^3)))/((8*Q*l))); //absolute error inkr/m-s
+er = (dr/((r/(10^-3))))*100; //dr/r in %
+ep1 = (dp1/(p1))*100; //dp1/p1 in %
+ep2 = (dp2/(p2))*100; //dp2/p2 in %
+eQ = (dQ/(Q))*100; //dQ/Q in %
+el = (dl/(l))*100; //dl/l in %
+p = p1-p2; //dp/p in Pa
+ep = (((p1/(p))*(ep1))+(p2/(p))*(ep2)); //percentage error in % anging - to +
+eu = (4*er)+(ep+eQ+el); //percentage error in % ranging - to +
+ua = u*(eu/100); //absolute error in kg/m-s
+
+//result
+
+mprintf("absolute error = %3.3e kg/m-s",u);
+mprintf("\nxabsolute error = %3.2e kg/m-s",ua);
+
diff --git a/3871/CH3/EX3.19/Ex3_19.sce b/3871/CH3/EX3.19/Ex3_19.sce new file mode 100644 index 000000000..52c203443 --- /dev/null +++ b/3871/CH3/EX3.19/Ex3_19.sce @@ -0,0 +1,33 @@ +//===========================================================================
+//chapter 3 example 19
+
+clc;clear all;
+
+//variable declaration
+C = 1*10^-6; //capacitance in F
+dC = 1; //error capacitance in %
+P = 1000; //resistance in Ω
+dP = 0.4; //error in resistance in %
+Q = 2000; //resistance in Ω
+dQ = 1; //error in resistance in %
+S = 2000; //resistance in Ω
+dS = 0.5; //error in resistance in %
+r = 200; //resistance in Ω
+dr = 0.5; //error in resistance in %
+
+//calcukations
+Lx = ((C*P)*((r*(Q+S))+(Q*S)))/(S); //unknown inductance in Henry
+u =Q+S; //in Ω
+du = ((Q/(u))*(dQ))+((S/(u))*(dS)); //percentage error in %
+v = r*(Q+S);
+dv = dr+du; //percentage error of v in %
+x = Q*S;
+dx = dQ+dS; //percentage error of x in %
+y = (r*(Q+S))+(Q*S);
+dy = ((v/(y))*(dQ))+((x/(y))*(dx)); //percentage error in %
+dLx = dC+dP+dS+dy;
+
+//result
+mprintf("unknown inductance = %3.2f henry",Lx);
+mprintf("\npercentage error on inductance = %3.1f percentage",dLx);
+
diff --git a/3871/CH3/EX3.2/Ex3_2.sce b/3871/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..7fe9cebb4 --- /dev/null +++ b/3871/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,13 @@ +clc;
+clear all;
+
+//variable declaration
+Am = 25.34; //measured value in watts
+dA = -0.11; //absolute error in watts
+
+
+//calculations
+A = Am-dA; //True value in wtts
+
+//result
+mprintf("abslotue error = %3.2f watts",A);
diff --git a/3871/CH3/EX3.20/Ex3_20.sce b/3871/CH3/EX3.20/Ex3_20.sce new file mode 100644 index 000000000..2c087da9d --- /dev/null +++ b/3871/CH3/EX3.20/Ex3_20.sce @@ -0,0 +1,24 @@ +//===========================================================================
+//chapter 3 example 20
+
+clc;clear all;
+
+//variable declaration
+R = 100; //resistance in Ω
+dR = 5; // error (dR/R) in %
+L = 2; //inductance
+r = 50;
+dL = 10; // error (dl/L) in %
+
+//calculations
+u = R**2;
+du = 2*dR; //percentage error(du/u) in %
+v = ((2*(%pi)*(r))**2)*(L**2);
+dv =2*dL; //percentage error(dv/v) in %
+x = u+v;
+dx =((u/(x))*(du))+((v/(x))*(dv)); //percentage error(dx/x)in %
+Z = sqrt(x);
+dZ = dx/(2); //uncertanity (dZ/Z) in %
+
+//result
+mprintf("uncertanity in the measurement = %3.3f percentage",dZ);
diff --git a/3871/CH3/EX3.21/Ex3_21.sce b/3871/CH3/EX3.21/Ex3_21.sce new file mode 100644 index 000000000..ebc84c89a --- /dev/null +++ b/3871/CH3/EX3.21/Ex3_21.sce @@ -0,0 +1,28 @@ +//===========================================================================
+//chapter 3 example 21
+clc;clear all;
+
+//variable declaration
+x1 = 49.7; //voltage in V
+x2 = 50.1; //voltage in V
+x3 = 50.2; //voltage in V
+x4 = 49.6; //voltage in V
+x5 = 49.7; //voltage in V
+n =5;
+
+//ccalculations
+x =(x1+x2+x3+x4+x5)/(5); //arthimetic mean
+d1 =x-x1; //deviation
+d2 =x-x2; //deviation
+d3 =x-x3; //deviation
+d4 =x-x4; //deviation
+d5 =x-x5; //deviation
+d = (d1**2)+(d2**2)+(d3**2)+(d4**2)+(d5**2);
+sigma = sqrt(d/(n-1)); //standard devation
+
+//result
+mprintf("arthimetic mean = %3.2f ",x);
+mprintf("\nstandard deviation = %3.3f",sigma);
+
+
+
diff --git a/3871/CH3/EX3.22/Ex3_22.sce b/3871/CH3/EX3.22/Ex3_22.sce new file mode 100644 index 000000000..5d31c698e --- /dev/null +++ b/3871/CH3/EX3.22/Ex3_22.sce @@ -0,0 +1,39 @@ +//===========================================================================
+//chapter 3 example 22
+clc;clear all;
+
+//variable declaration
+x1 = 41.7; //voltage in V
+x2 = 42; //voltage in V
+x3 = 41.8; //voltage in V
+x4 = 42; //voltage in V
+x5 = 42.1; //voltage in V
+x6 = 41.9; //voltage in V
+x7 = 42.5; //voltage in V
+x8 = 42; //voltage in V
+x9 = 41.9; //voltage in V
+x10 = 41.8; //voltage in V
+n =10;
+
+//ccalculations
+x =(x1+x2+x3+x4+x5+x6+x7+x8+x9+x10)/(10); //arthimetic mean
+d1 =x-x1; //deviation
+d2 =x-x2; //deviation
+d3 =x-x3; //deviation
+d4 =x-x4; //deviation
+d5 =x-x5; //deviation
+d6 =x-x6; //deviation
+d7 =x-x7; //deviation
+d8 =x-x8; //deviation
+d9 =x-x9; //deviation
+d10 =x-x10; //deviation
+d = (d1^2)+(d2^2)+(d3^2)+(d4^2)+(d5^2)+(d6^2)+(d7^2)+(d8^2)+(d9^2)+(d10^2);
+sigma = sqrt(d/(n-1)); //standard devation
+r = 0.6745*sigma; //probable error of one reading
+
+//result
+mprintf("arthimetic mean = %3.2f ",x);
+mprintf("\nstandard deviation = %3.3f",sigma);
+mprintf("\nprobable error of ne reading = %3.3f",r);
+
+
diff --git a/3871/CH3/EX3.23/Ex3_23.sce b/3871/CH3/EX3.23/Ex3_23.sce new file mode 100644 index 000000000..7fef867ee --- /dev/null +++ b/3871/CH3/EX3.23/Ex3_23.sce @@ -0,0 +1,42 @@ +//===========================================================================
+//chapter 3 example 23
+
+clc;clear all;
+
+//variable declaration
+x1 = 41.7; //voltage in V
+x2 = 42; //voltage in V
+x3 = 41.8; //voltage in V
+x4 = 42; //voltage in V
+x5 = 42.1; //voltage in V
+x6 = 41.9; //voltage in V
+x7 = 42.5; //voltage in V
+x8 = 42; //voltage in V
+x9 = 41.9; //voltage in V
+x10 = 41.8; //voltage in V
+n =10;
+
+//ccalculations
+x =(x1+x2+x3+x4+x5+x6+x7+x8+x9+x10)/(10); //arthimetic mean
+d1 =x-x1; //deviation
+d2 =x-x2; //deviation
+d3 =x-x3; //deviation
+d4 =x-x4; //deviation
+d5 =x-x5; //deviation
+d6 =x-x6; //deviation
+d7 =x-x7; //deviation
+d8 =x-x8; //deviation
+d9 =x-x9; //deviation
+d10 =x-x10; //deviation
+d = (d1**2)+(d2**2)+(d3**2)+(d4**2)+(d5**2)+(d6**2)+(d7**2)+(d8**2)+(d9**2)+(d10**2);
+sigma = sqrt(d/(n-1)); //standard devation
+r = 0.6745*sigma; //probable error of one reading
+rm = r/(sqrt(n-1)); //probable error of mean in V
+R = x7-x1; //range in V
+//result
+mprintf("arthimetic mean = %3.2f",x);
+mprintf("\nstandard deviation = %3.3f",sigma);
+mprintf("\nprobable error of one reading = %3.3f",r);
+mprintf("\nprobable error of mean = %3.5f V',rm);
+mprintf("\nRange = %3.2f V',R);
+
diff --git a/3871/CH3/EX3.24/Ex3_24.sce b/3871/CH3/EX3.24/Ex3_24.sce new file mode 100644 index 000000000..e1e96f424 --- /dev/null +++ b/3871/CH3/EX3.24/Ex3_24.sce @@ -0,0 +1,43 @@ +//===========================================================================
+//chapter 3 example 24
+clc;clear all;
+
+//variable declaration
+x1 = 1.570; //voltage in V
+x2 = 1.597; //voltage in V
+x3 = 1.591; //voltage in V
+x4 =1.562; //voltage in V
+x5 =1.577; //voltage in V
+x6 = 1.580; //voltage in V
+x7 = 1.564; //voltage in V
+x8 = 1.586; //voltage in V
+x9 = 1.550; //voltage in V
+x10 = 1.575; //voltage in V
+n =10;
+
+//ccalculations
+x =(x1+x2+x3+x4+x5+x6+x7+x8+x9+x10)/(10); //arthimetic mean
+d1 =x1-x; //deviation
+d2 =x2-x; //deviation
+d3 =x3-x; //deviation
+d4 =x4-x; //deviation
+d5 =x5-x; //deviation
+d6 =x6-x; //deviation
+d7 =x7-x; //deviation
+d8 =x8-x; //deviation
+d9 =x9-x; //deviation
+d10 =x10-x; //deviation
+D =(abs(d1)+abs(d2)+abs(d3)+abs(d4)+abs(d5)+abs(d6)+abs(d7)+abs(d8)+abs(d9)+abs(d10))/(n);
+d = ((d1^2)+(d2^2)+(d3^2)+(d4^2)+(d5^2)+(d6^2)+(d7^2)+(d8^2)+(d9^2)+(d10^2));
+sigma = sqrt(d/(n-1)); //standard devation
+r = 0.6745*sigma; //probable error of one reading
+v = sigma^2;
+rm = r/(sqrt(n-1)); //probable error of mean in V
+
+//result
+mprintf("arthimetic mean = %3.3f",x);
+mprintf("\naverage deviation = %3.3f gramme",D);
+mprintf("\nstandard deviation = %3.5f gramme*2",sigma);
+mprintf("\nprobable error of one reading = %3.5f gramme",r);
+mprintf("\n variance= %3.3e gramme^2",v);
+mprintf("\nprobable error of mean = %3.4f gramme",rm);
diff --git a/3871/CH3/EX3.3/Ex3_3.sce b/3871/CH3/EX3.3/Ex3_3.sce new file mode 100644 index 000000000..8f96ec025 --- /dev/null +++ b/3871/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,17 @@ +//===========================================================================
+//chapter 3 example 2
+
+clc;clear all;
+
+
+//variable declaration
+Am = 205.3*10**-6; //measured value in Ω
+A = 201.4*10**-6; //True value in Ω
+
+//calculations
+e0 = Am-A; //absolute error in Ω
+r = (e0/(A))*100; //relative error in %
+
+//result
+mprintf("abslotue error = %3.2e F ",e0);
+mprintf("\nrelative error = %3.2f percentage",r);
diff --git a/3871/CH3/EX3.4/Ex3_4.sce b/3871/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..03aa19196 --- /dev/null +++ b/3871/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,20 @@ +//===========================================================================
+//chapter 3 example 4
+clc;
+clear all;
+
+//variable declaration
+ep = 5; //percentage error
+Am = 20; //measuredd value in H
+
+//calculations
+er = ep/(100); //relative error
+//A = Am+dA
+//dA = er*Am
+A = Am*(1+er); //limiting value of inductance in H
+A1 = Am*(1-er); //limiting value of inductance in H
+
+//result
+mprintf("limits of inductance =%3.2f H",A);
+mprintf("\n and = %3.2f H",A1);
+
diff --git a/3871/CH3/EX3.5/Ex3_5.sce b/3871/CH3/EX3.5/Ex3_5.sce new file mode 100644 index 000000000..13bbea96e --- /dev/null +++ b/3871/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,21 @@ +//===========================================================================
+//chapter 3 example 5
+clc;
+clear all;
+
+//variable declaration
+er = 1.5*10^-2; //accuracy
+A1 = 10; //current in A
+A2 = 2.5; //current in A
+
+//calculations
+dA = er*A1; //magnitude of limiting error of the instrument
+er1 = dA/(A2); //magnitude of current
+A11 = A2*(1+er1); //current in A
+A12 = A2*(1-er1); //current in A
+er2 = (dA/(A2))*100; //limiting error in %
+
+//result
+mprintf("limiting values of current =%3.2f A and %3.2f",A11,A12);
+mprintf("\nlimiting error = %3.1f percentage',er2);
+
diff --git a/3871/CH3/EX3.6/Ex3_6.sce b/3871/CH3/EX3.6/Ex3_6.sce new file mode 100644 index 000000000..bb2f9fd2a --- /dev/null +++ b/3871/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,16 @@ +//===========================================================================
+//chapter 3 example 6
+
+clc;clear all;
+
+//variable declaration
+e = 0.01; //acuuracy
+v = 150; //voltage in V
+v1 = 83; // measured voltage in V
+
+//calculations
+dV = e*v; //magnitude of the limiting error of the instrument in V
+er = (dV/(v1))*100; //percentage limiting error at v1 voltage in %
+
+//result
+mprintf("limmiting error in case of 83V is = %3.2f percentage',er);
diff --git a/3871/CH3/EX3.7/Ex3_7.sce b/3871/CH3/EX3.7/Ex3_7.sce new file mode 100644 index 000000000..d482a921a --- /dev/null +++ b/3871/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,18 @@ +//===========================================================================
+//chapter 3 example 7
+
+
+clc;clear all;
+
+//variable declaration
+er = 0.01; // limiting error
+P = 1000; //power in watts
+P1 = 100; // true power in watts
+
+//calculations
+dP = er*P; //magnitude of instrument error of the instrument watts
+eP = (dP/(P1))*100; //percentage limiting error at 100 W power in %
+
+//result
+mprintf("percentage limiting error at 100 W power = %3.2f percentage',eP);;
+
diff --git a/3871/CH3/EX3.9/Ex3_9.sce b/3871/CH3/EX3.9/Ex3_9.sce new file mode 100644 index 000000000..4aba39803 --- /dev/null +++ b/3871/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,25 @@ +//===========================================================================
+//chapter 3 example 9
+
+clc;clear all;
+
+//variable declaration
+v = 110.2; //voltage drop in V
+i = 5.3; //current in A
+v1 = 0.2; //uncertainity in measurements in V
+i1 = 0.6; //uncertanity in measurments in A
+
+//calculations
+erv = (v1/(v))*100; //limiting error to voltage drop in %(ranging + to -)
+eri = (i1/(i))*100; //limitng error in currrent in %(ranging + to -)
+P = v*i; //power dissipated in the resistor in W
+eP = (erv+eri); //limting error in the power dissipation in %(ranging + to -)
+p = eP*P*10^-2; //power with limiting error in W
+e = erv+eri; //limiting error in power dissipation
+P1 = P+p; //power dissipation is given in W
+P11 = P-p; //power dissipation is given in W
+
+//result
+mprintf("power dissipated = %3.2f W',P);
+mprintf("\nlimiting error in the power dissipation = %3.1f percentage",e)
+mprintf("\nuncertanity in power ranging in %3.2f W to %3.2f",P11,P1);
|