blob: c770a4cd6ccc58bd11746340c88815b74438af96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//EXAMPLE 5-29 PG NO 323
V1=5; //Voltage
V2=0.05; //Voltage
R1=100; //Resistance
R2=1000; //Resistance
R3=85;
R4=880;;
I1=0.00266; //Current
I2=0.02676; //Current
Va=V1-R1*I2;
Vb=V1-R2*I1;
VTH=Va-Vb;
RTH=((R1*R3)/(R1+R3))+(R2*R4)/(R2+R4)
I=(0.016)/(RTH+20);
disp('i) Voltage (Va) is in polar = '+string (Va) +' V ');
disp('i) Voltage (Vb) is in polar = '+string (Vb) +' V ');
disp('i) Voltage (VTH) is in polar = '+string (VTH) +' V ');
disp('i) Resistance (RTH) is in polar = '+string (RTH) +' ohms ');
disp('i) Current (I) is = '+string (I) +' A ');
|