Professional Documents
Culture Documents
Superposition Theorem
Superposition Theorem
Superposition Theorem
PROGRAM:
V1=input('enter the value of V1');
V2=input('enter the value of V2');
R1=input('enter the value of R1');
R2=input('enter the value of R2');
R3=input('enter the value of R3');
R4=input('enter the value of R4');
R5=input('enter the value of R5');
RL=input('enter the value of RL');
x=R1+((R2+R4)*(R3+R5))/((R2+R4)+(R3+R5));
i=V1/x ;
i1=i*((R5+R3)/(R5+R3+R2+R4));
i2=i*((R4+R2)/(R5+R3+R2+R4));
Vth=(i1*R4)-(i2*R5);
rx=R1+R2+R4;
r1=(R2*R4)/rx;
r2=(R2*R1)/rx;
r4=(R1*R4)/rx;
Rth=r1+((r2+R3)*(r4+R5))/(r2+R3+r4+R5);
Ix=Vth/(Rth+RL);
Iy=V2/(Rth+RL);
I=Ix+Iy;
OUTPUT:
enter the value of V1 1
>> x
x=
>> i
i=
0.5000
>> i1
i1 =
0.2500
>> i2
i2 =
0.2500
>> Vth
Vth =
0
>> Rth
Rth =
>> Ix
Ix =
>> Iy
Iy =
0.6667
>> I
I=
0.6667