summaryrefslogtreecommitdiff
path: root/2702/CH4/EX4.16/Ex_4_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '2702/CH4/EX4.16/Ex_4_16.sce')
-rw-r--r--2702/CH4/EX4.16/Ex_4_16.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/2702/CH4/EX4.16/Ex_4_16.sce b/2702/CH4/EX4.16/Ex_4_16.sce
new file mode 100644
index 000000000..e81df5fca
--- /dev/null
+++ b/2702/CH4/EX4.16/Ex_4_16.sce
@@ -0,0 +1,24 @@
+// Exa 4.16
+clc;
+clear;
+close;
+// Given data
+I=1;// in mA
+I=I*10^-3;// in A
+i_C=1;// in mA
+i_C=i_C*10^-3;// in A
+V_CC= 5;// in V
+V_CM= -2;// in V
+V_BE= 0.7;// in V
+R_C= 3;// in kΩ
+R_C= R_C*10^3;// in Ω
+Alpha=1;
+Bita=100;
+V_B= 1;// in V
+i_C1= Alpha*I;// in A
+i_C2=0;
+v_E= V_B-V_BE;// in V
+disp(v_E,"Emitters voltage in volts is : ")
+v_C1= V_CC-i_C1*R_C;// in V
+v_C2= V_CC-i_C2*R_C;// in V
+disp("Output voltage is "+string(v_C1)+" V and "+string(v_C2)+" V")