From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2492/CH4/EX4.21/ex4_21.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2492/CH4/EX4.21/ex4_21.sce (limited to '2492/CH4/EX4.21') diff --git a/2492/CH4/EX4.21/ex4_21.sce b/2492/CH4/EX4.21/ex4_21.sce new file mode 100755 index 000000000..f42b4e7c7 --- /dev/null +++ b/2492/CH4/EX4.21/ex4_21.sce @@ -0,0 +1,22 @@ +// Exa 4.21 +format('v',7) +clc; +clear; +close; +// Given data +beta_dc = 90; +// The base current, +I_C = 15;// in mA +I_C = I_C * 10^-3;// in A +I_B = I_C/beta_dc;// in A +I_B=I_B*10^6;// in µA +disp(I_B,"The base current in µA is"); +I_B=I_B*10^-6;// in A +// The emitter current, +I_E = I_C + I_B;// in A +I_E = I_E * 10^3;// in mA +disp(I_E,"The Emitter current in mA is"); +alpha_dc = beta_dc/(1+beta_dc); +disp(alpha_dc,"The value of alpha_dc is"); + +// Note: There is printing mistake in the book in this example. -- cgit