summaryrefslogtreecommitdiff
path: root/620/CH5/EX5.10/example5_10.sce
blob: ce5139c32e96b7c1a32518307ada60be2fbb7855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
disp("Part a");
v1=25;
v2=10;
v=v1-v2;
r1=470;
r2=220;
r=r1+r2;
i=v/r;
disp("the current (in mA) is"); disp(i*10^3);
disp("Part b");
vb=v2+i*r2;
disp("the voltage (in V) at A w.r.t. B is"); disp(vb);