summaryrefslogtreecommitdiff
path: root/620/CH9/EX9.5/example9_5.sce
blob: eaac106b82685e896f59d5ec64b0a92593da26b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
disp("Part a");
v=1.5;;
r=0.1;
rl=1.2;
il=3*v/(rl+3*r);
disp("the load current (in A) is"); disp(il);
vl=il*rl;
disp("the load voltage (in V) is"); disp(vl);
disp("Part b");
r1=1.5;
il1=4*v/(rl+r1+3*r);
disp("the load curent (in A) is "); disp(il1);
vl1=il1*rl;
disp("the load voltage (in V) is"); disp(vl1);
vab=v-il1*r1;
disp("terminal volatge (in V) across the fourth cell is"); disp(vab);
p=il1^2*r1;
disp("internal power dissipation (in W) is"); disp(p);