diff options
Diffstat (limited to '3871/CH5/EX5.13/Ex5_13.sce')
-rw-r--r-- | 3871/CH5/EX5.13/Ex5_13.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3871/CH5/EX5.13/Ex5_13.sce b/3871/CH5/EX5.13/Ex5_13.sce new file mode 100644 index 000000000..c7d9e3799 --- /dev/null +++ b/3871/CH5/EX5.13/Ex5_13.sce @@ -0,0 +1,26 @@ +//===========================================================================
+//chapter 5 example 13
+
+clc;clear all;
+
+//variable declaration
+V1 = 50*10^-3; //voltage in V
+I1 = 5; //current in A
+I2 = 10; //current in A
+v1 =4;
+v2 =4.2;
+
+//calculations
+//v1 = (r+R1)*I1
+//v1 = (r+R1)*I2
+//since potential difference is same in both cases
+//v1= v2
+R1 = V1/(I1);
+R2 = V1/(I2);
+r = ((v2*R2)-(v1*R1))/(v1-v2);
+v = (r+R1)*v1; //potential difference in V
+I = v/(r); //current when neither meter in the circuit in A
+
+//result
+mprintf("current when neither meter in the circuit = %3.2f A",I);
+
|