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 /215/CH2/EX2.4/ex2_4.sce | |
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 '215/CH2/EX2.4/ex2_4.sce')
-rwxr-xr-x | 215/CH2/EX2.4/ex2_4.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/215/CH2/EX2.4/ex2_4.sce b/215/CH2/EX2.4/ex2_4.sce new file mode 100755 index 000000000..6d0448eab --- /dev/null +++ b/215/CH2/EX2.4/ex2_4.sce @@ -0,0 +1,16 @@ +//Example 2.4
+//Calculate the power dissipated within the wire
+//From figure 2.27
+disp("Given")
+disp("Total length of the wire is 4000 feet")
+disp("Current drawn by lamp is 100A")
+//Considering American Wire Gauge system(AWG)
+//Referring Table 2.4
+disp("4AWG=0.2485ohms/1000ft")
+l=4000; i=100 ; rl=0.2485/1000;
+//Let R be the wire resistance
+R=l*rl;
+//Let p be the power dissipated within the wire
+disp("p=i^2*R")
+p=i^2*R
+printf("Power dissipated within the wire=%dW\n",p)
|