summaryrefslogtreecommitdiff
path: root/620/CH15/EX15.8/example15_8.sce
blob: 591bfaa3467c2e842d2793570cd3661f39f9ee0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
r1=3.3;
r2=4.7;
vp=36;
disp("Part a");
vt=vp/(2*sqrt(2));
rt=r1+r2;
i=vt/rt;
disp("the reading of a series-connected ammeter (in mA) is"); disp(i);
disp("Part b");
v=vt*r2/(r1+r2);
disp("voltage (in V) across the 4.7 kΩ resistor is"); disp(v);
disp("Part c");
p=i^2*r1;
disp("power dissipated (in mW) in he 3.3kΩ resistor is"); disp(p);