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 /3809/CH18/EX18.6/EX18_6.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 '3809/CH18/EX18.6/EX18_6.sce')
-rw-r--r-- | 3809/CH18/EX18.6/EX18_6.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3809/CH18/EX18.6/EX18_6.sce b/3809/CH18/EX18.6/EX18_6.sce new file mode 100644 index 000000000..4a2971847 --- /dev/null +++ b/3809/CH18/EX18.6/EX18_6.sce @@ -0,0 +1,30 @@ +//Chapter 18, Example 18.6 +clc +//Initialisation +vcc=15 //voltage +vc=9.5 //voltage +ic=10**-3 //collector current +Ie=10**-3 //emitter current +RE=5.6*10**3 //resistance in ohm +RC=1.3*10**3 //resistance in ohm +R2=13*10**3 //resistance in ohm, choosen R2 as approximately 10 times RE +pi=3.14 //pi +fc=10 //frequency in hertz + + +//Calculation +rc=(vcc-vc)/ic //resistance in ohm +re=rc/4 //resistance in ohm +vg=-RC/(RE+re) //voltage gain +R1=(R2*(vcc-2))/2 //resistance in ohm +Ri=(R1*R2)/(R1+R2) //input resistance in ohm +c=1/(2*pi*fc*Ri) //cut-off frequency + + + +//Results +printf("C = %.1f uF\n",c*10**6) +printf("R1 = %.1f kOhm\n",R1/10**3) +printf("R2 = %d kOhm\n",R2/10**3) +printf("RC = %.1f kOhm\n",rc/10**3) +printf("RE = %.1f kOhm\n",re/10**3) |