diff options
Diffstat (limited to '3871/CH5/EX5.3/Ex5_3.sce')
-rw-r--r-- | 3871/CH5/EX5.3/Ex5_3.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3871/CH5/EX5.3/Ex5_3.sce b/3871/CH5/EX5.3/Ex5_3.sce new file mode 100644 index 000000000..e53bdfa7c --- /dev/null +++ b/3871/CH5/EX5.3/Ex5_3.sce @@ -0,0 +1,24 @@ +//===========================================================================
+//chapter 5 example 3
+clc;
+clear all;
+
+//variable declaration
+R = 500; //resistance in
+r = 2000; //non inductive resistance in
+V = 250; //voltage in V
+f = 50; //frequency in Hz
+L = 1; //inductance in H
+
+
+//calculations
+x = (r+R)^2;
+W = (2*%pi*f*L)^2;
+Z =sqrt(x+W); //impedance of the instrument circuit
+I = V/(Z); //current drawn by instrument in A
+I2 = V/(R+r); //since voltmeter reads correctly on dc supply on 250 V,corresponding current in A
+V1 = V*(I/(I2)); //voltmeter reading when connected to 250V ,50Hz supply
+
+//result
+mprintf("voltmeter reading = %3.1d V",V1);
+
|