summaryrefslogtreecommitdiff
path: root/2492/CH4/EX4.9/ex4_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2492/CH4/EX4.9/ex4_9.sce
downloadScilab-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.9/ex4_9.sce')
-rwxr-xr-x2492/CH4/EX4.9/ex4_9.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/2492/CH4/EX4.9/ex4_9.sce b/2492/CH4/EX4.9/ex4_9.sce
new file mode 100755
index 000000000..c3f9348b1
--- /dev/null
+++ b/2492/CH4/EX4.9/ex4_9.sce
@@ -0,0 +1,28 @@
+// Exa 4.9
+format('v',6)
+clc;
+clear;
+close;
+// Given data
+V_BE= 0.7;
+bita = 100;
+V_CC = 20;// in V
+R_E = 1 * 10^3;// in ohm
+V_CEQ = 10;// in V
+I_CQ = 2* 10^-3;// in A
+S_ICO = 10;
+I_BQ = I_CQ/bita;// in A
+// R_B= R1*R2/(R1+R2) (i)
+// V_B= R2*V_CC/(R1+R2) (ii)
+R_B= (S_ICO-1)*R_E;// in ohm
+// V_CC= I_CQ*R_C+V_CEQ+(1+bita)*I_C/bita*R_E
+R_C= (V_CC-V_CEQ-I_CQ*R_E)/I_CQ;// in ohm
+I_B= I_CQ/bita;// in A
+V_B= I_B*R_B+V_BE+(1+bita)*R_E*I_B;// in V
+// From eq (i) and (ii)
+R2= (V_B*R_B+R_B*(V_CC-V_B))/(V_CC-V_B);// in ohm
+R1= R2*R_B/(R2-R_B);// in ohm
+R1= R1*10^-3;// in k ohm
+R2= R2*10^-3;// in k ohm
+disp(R1,"The value of R1 in k ohm is : ")
+disp(R2,"The value of R2 in k ohm is : ")