summaryrefslogtreecommitdiff
path: root/3630/CH10/EX10.1/Ex10_1.sce
blob: 2e460d43819279a5e48327e47e544852bde03971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc;
R1=20000; //Ohm
R2=20000; //Ohm
Vcc=10; //Volt
Vb=Vcc*(R2/(R1+R2)); //Volt
Ve=Vb-0.7; //Volt
Re=5000; //Ohm
Ie=Ve/Re; //Ampere
Vceq=Vcc-Ve; //Volt
disp('V',Vb,"Vb=");//The answers vary due to round off error
disp('V',Ve,"Ve=");//The answers vary due to round off error
disp('A',Ie,"Ie=");//The answers vary due to round off error
disp('V',Vceq,"Vceq=");//The answers vary due to round off error