diff options
Diffstat (limited to '1529/CH10/EX10.4/10_04.sce')
-rwxr-xr-x | 1529/CH10/EX10.4/10_04.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1529/CH10/EX10.4/10_04.sce b/1529/CH10/EX10.4/10_04.sce new file mode 100755 index 000000000..c8479d0df --- /dev/null +++ b/1529/CH10/EX10.4/10_04.sce @@ -0,0 +1,13 @@ +//Chapter 10, Problem 4, figure 10.10
+clc;
+R=500; //load resistance
+V=10; //supply voltage
+ra=50; //ammeter resistance
+Ie=V/R; //calculating expected current
+Ia=V/(R+ra); //calculating actual current
+P=Ia^2*ra; //calculating power dissipated in the ammeter
+Pl=Ia^2*R; //calculating power dissipated in load resistor
+printf("(a) Expected ammeter reading = %f mA\n\n\n",Ie*1000);
+printf("(b) Actual ammeter reading = %f mA\n\n\n",Ia*1000);
+printf("(c) Power dissipated in the ammeter = %f mW\n\n\n",P*1000);
+printf("(d) Power dissipated in the load resistor = %f mW\n\n\n",Pl*1000);
|