summaryrefslogtreecommitdiff
path: root/275/CH1/EX1.1.57/Ch1_1_57.sce
blob: 4f7e786db458fc8420c33391f37ec9ec03635e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clc
disp("Example 1.57")
printf("\n")
disp("To find diode current at 25c and 75c")
RL=150
//both diode voltage drop as given in fig 1.47
Vr1=0.7   //for silicon
Vr2=0.3   //for Germanium
Vdc=5
//apply KVL to given circuit
IF1=(Vdc-(Vr1+Vr2))/RL
//for silicon diode 
v=(-1.8*10^-3)
T1=25
T2=75
VFT2=Vr1+((T2-T1)*v)
//for Germanium Diode
v=(-2.2*10^-3)
VFT2!=Vr2+((T2-T1)*v)
IF2=(Vdc-(VFT2!+VFT2))/RL
printf("Diode current at 25c and 75c =\n%f ampere\n%f ampere\n",IF1,IF2)