summaryrefslogtreecommitdiff
path: root/1223/CH10/EX10.4/Ex10_4.sce
blob: f84c1ace2beb56eb93a7159c3c997dcfb5f81d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear;
clc;
//Example 10.4
Iref=1;
Io=12*10^-3;
V1=5;
V2=-5;
Vt=0.026;
Vbe=0.7;
R1=(V1-Vbe-V2)/Iref;
printf('\nResistance R1 =%.2fKOhm\n',R1)
Re=(Vt/Io)*log(Iref/Io);
printf('\nResistance Re =%.2fKOhm\n',Re)
Vbe=Io*Re;
printf('\ndifference between two B-E voltages=%.2f V\n',Vbe)