diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1529/CH10/EX10.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1529/CH10/EX10.4')
-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);
|