diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2492/CH4/EX4.21 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2492/CH4/EX4.21')
-rwxr-xr-x | 2492/CH4/EX4.21/ex4_21.sce | 22 |
1 files changed, 22 insertions, 0 deletions
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.
|