summaryrefslogtreecommitdiff
path: root/2561/CH2/EX2.1/Ex2_1.sce
blob: 626e3824a5195caf50b450eac8fb0940c882a6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Ex2_1
clc
IR=50*10^(-9)
disp("IR = "+string(IR)+" ampere") // value of Reverse saturation current
VT=26*10^(-3)
disp(" Thermal voltage,VT= "+string(VT)+"volt")
VAK1=(-0.25)// diode junction voltage
disp("Junction voltage,VAK1="+string(VAK1)+"volt")
IA =IR*[exp(VAK1/(2*VT))-1]// formulae for diode current
disp("Diode current,IA =IR*(exp(VAK1/(2*VT))-1)= "+string(IR*(exp(VAK1/(2*VT))-1))+" ampere") // calculation
VAK2=(+0.25)
disp("Junction voltage,VAK2="+string(VAK2)+"volt")
IA =IR*[exp(VAK2/(2*VT))-1]
disp("Diode current,IA =IR*(exp(VAK2/(2*VT))-1)= "+string(IA)+" ampere") // calculation
VAK3=(+0.5)
disp("Junction voltage,VAK3="+string(VAK3)+"volt")
disp("Diode current,IA =IR*(exp(VAK3/(2*VT))-1)= "+string(IR*(exp(VAK3/(2*VT))-1))+" ampere") // calculation
VAK4=(+0.6)
disp("Junction voltage,VAK4="+string(VAK4)+"volt")
disp("Diode current,IA =IR*(exp(VAK4/(2*VT))-1)= "+string(IR*(exp(VAK4/(2*VT))-1))+" ampere") // calculation
VAK5=(+0.7)
disp("Junction voltage,VAK3="+string(VAK5)+"volt")
disp("Diode current,IA =IR*(exp(VAK5/(2*VT))-1)= "+string(IR*(exp(VAK5/(2*VT))-1))+" ampere") // calculation
VAK6=(+0.8)
disp("Junction voltage,VAK3="+string(VAK6)+"volt")
disp("Diode current,IA =IR*(exp(VAK6/(2*VT))-1)= "+string(IR*(exp(VAK6/(2*VT))-1))+" ampere") // calculation