summaryrefslogtreecommitdiff
path: root/887/CH10/EX10.7/10_7.sce
blob: 2d31a9612641f6454a0f5355ac33ead85fbb52b8 (plain)
1
2
3
4
5
6
7
8
9
10
clc
//ex10.7
V_1=3;
R_1=20;
//As given voltage source results in forward bias, we assume operating point is on line segment A
//replacing diode with the equivalent circuit
V_2=0.6;
R_2=10;
i_D=(V_1-V_2)/(R_1+R_2);      //KVL around the circuit
disp(i_D*10^3,'current in the circuit in milli-amperes')      //milli-10^-3