summaryrefslogtreecommitdiff
path: root/620/CH9/EX9.1/example9_1.sce
blob: cf5ea2625969ef7ec100e6390c0a312d0583995d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
v=6.5;
r=2.5;
rl=10;
disp("Part a");
i=v/(r+rl);
disp("the current (in A) through the load is"); disp(i);
disp("Part b");
vr=i*r;
disp("the internal voltage drop (in V) is"); disp(vr);
disp("Part c");
vt=v-vr;
disp("the terminal voltage (in V) of the battery under load is"); disp(vt);
disp("Part d");
r1=5;
i1=v/(r1+rl);
vt1=v-i1*r1;
disp("the terminal voltage (in V) of the battery is"); disp(vt1)