summaryrefslogtreecommitdiff
path: root/215/CH2/EX2.4/ex2_4.sce
blob: 6d0448eab44414d8fe2808e5e4a229e261be665c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)