diff options
Diffstat (limited to '3871/CH3/EX3.16/Ex3_16.sce')
-rw-r--r-- | 3871/CH3/EX3.16/Ex3_16.sce | 22 |
1 files changed, 22 insertions, 0 deletions
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);
+
|