summaryrefslogtreecommitdiff
path: root/620/CH10/EX10.3/example10_3.sce
blob: da2bacec6b3dd06b62090c1bde705107958e887a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
v1=15;
v2=20;
v3=10;
r1=10;
r2=15;
r3=8;
r4=12;
r5=5;
i2=(r5*(v1+v2)-(v2+v3)*(r1+r2+r5))/((r3+r4+r5)*(r1+r2+r5)-r5^2);
i1=(v1+v2+i2*r5)/(r1+r2+r5);
i=i1-i2;
disp("current (in A) through V2 is given by"); disp(i);