summaryrefslogtreecommitdiff
path: root/887/CH2/EX2.21/2_21.sce
blob: 706586c40e670e776f7518e02390e346e70d8b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
//ex2.21
V_s=50;
R_1=20;
R_2=5;
//Zeroing the voltage source
R_eq=1/((1/R_1)+(1/R_2));      //R_1 and R_2 in parallel
R_t=R_eq;      //thevenin resistance
//open-circuit analysis
V_oc=V_s*R_2/(R_1+R_2);      //open-circuit voltage
V_t=V_oc;      //thevenin voltage
R_L=R_t;
P_L_max=V_t^2/(4*R_t)
disp(R_L,'load resistance for maximum power transfer in ohms')
disp(P_L_max,'maximum power in watts')