blob: 7964f755cb31ea8beebae9ac6dd9b874ff92e645 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
R1=10; //Assigning values to parameters
R2=20;
R3=40;
R4=30;
R5=15;
V=2;
I1=V/(R1+R4);
I2=V/(R2+R5);
Vth=R2*I2-R1*I1; //Calculation of Thevenin voltage
Rth=((R1*R4)/(R1+R4))+((R2*R5)/(R2+R5)); //Calculation of Thevenin resistance
Il=Vth/(Rth+R3);
disp("Amperes",Il,"Load current")
|