summaryrefslogtreecommitdiff
path: root/3515/CH3/EX3.23/Ex_3_23.sce
blob: 14accfa3f46b2c6375d01ba579f79953abbef7f0 (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
27
28
29
30
31
32
33
// Exa 3.23
format('v',5);
clc;
clear;
close;
// Given data 
VBE= 0.7;// in V
VCC= 9;// in V
VCE= -9;// in V
V_B= -1.5;// in V
R_C= 10;// in kΩ
R_C=R_C*10^3;// in Ω
R_B= 10;// in kΩ
R_B=R_B*10^3;// in Ω
I_B=  abs(V_B)/R_B;// in A
V_E= V_B-VBE;// in V
disp(V_E,"The value of V_E in volt is : ")
I_E= (V_E-VCE)/R_B;// in A
Beta= I_E/I_B-1;
alpha= Beta/(1+Beta);
disp(alpha,"The value of alpha in volt is : ")
disp(Beta,"The value of Beta in volt is : ")
V_C= VCC-I_E*alpha*R_C;// in V
disp(V_C,"The value of V_C in volt is : ")
// When Beta = infinite then
alpha= 1 ;// As infinite/(1+infinite) = 1
I_B= 0;
V_B=0;
V_C= VCC-I_E*R_C;// in volt
disp("When Beta =  infinite then :-")
disp(V_B,"The value of V_B in volt is : ")
disp(V_E,"The value of V_E in volt is : ")
disp(V_C,"The value of V_C in volt is : ")