summaryrefslogtreecommitdiff
path: root/3673/CH3/EX3.a.17/Example_a_3_17.sce
blob: c115831dbe670a8e8f9225d43e6f4d7ef23dd75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example_a_3_17 page no:146
clc;
V=100;
R1=10;
R2=20;
R3=30;
R4=40;
Va=V*(R3/(R3+R1));
Vb=V*(R4/(R4+R2));
Vab=Va-Vb;
Rab=(((30*10)/(30+10))+((20*40)/(20+40)));
Rl=Rab;
Il=Vab/(Rl+Rl);
P=Il^2*Rl;//power calculation
disp(Rl,"the load resistance is (in ohm)");
disp(P,"the maximum power delivered to load is (in W)");