summaryrefslogtreecommitdiff
path: root/3507/CH1/EX1.10/Ex1_10.sce
blob: fecffbd307105e48d3ea0d5cfa0401027396a95f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//chapter1
//example1.10
//page18

V=120 // V
R1=40 // ohm
R2=20 // ohm
R3=60 // ohm

//removing load, voltage across AB is
E0=R2*V/(R1+R2)

//replacing voltage source by short and removing load, resistance across AB is
R0=R3+(R1*R2/(R1+R2))

//for maximum power transfer, load must be equal to resistance across AB so
Rl=R0

P=E0^2/(4*Rl)
printf("load resistance for maximum power transfer = %.3f ohm \n",Rl)
printf("maximum power to load = %.3f W",P)