diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /2459/CH12/EX12.11/Ex12_11.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '2459/CH12/EX12.11/Ex12_11.sce')
-rw-r--r-- | 2459/CH12/EX12.11/Ex12_11.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2459/CH12/EX12.11/Ex12_11.sce b/2459/CH12/EX12.11/Ex12_11.sce new file mode 100644 index 000000000..d8099712f --- /dev/null +++ b/2459/CH12/EX12.11/Ex12_11.sce @@ -0,0 +1,27 @@ +//chapter12
+//example12.11
+//page248
+
+Vcc=15 // V
+Re=2 // kilo ohm
+Rc=1 // kilo ohm
+gain_beta=100
+Vbe=0.7 // V
+R1=10 // kilo ohm
+R2=5 // kilo ohm
+
+// when Ic=0, Vce=Vcc i.e. Vce=6 and when Vce=0, Ic=Vcc/(Rc+Re) i.e. Ic=15/(1+2)
+// so equation of load line becomes Ic=-(1/3)*Vce+5
+
+clf()
+x=linspace(0,15,5)
+y=-(1/3)*x+5
+plot2d(x,y,style=3,rect=[0,0,16,6])
+xtitle("dc load line","Vce(volts)","Ic(mA)")
+
+V2=Vcc*R2/(R1+R2) // voltage across R2 i.e. 5 kilo ohm
+Ie=(V2-Vbe)/Re
+Ic=Ie
+Vce=Vcc-Ic*(Rc+Re)
+
+printf("the operating point is %.3f V and %.3f mA \n",Vce,Ic)
|