summaryrefslogtreecommitdiff
path: root/3754/CH24/EX24.8/24_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3754/CH24/EX24.8/24_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3754/CH24/EX24.8/24_8.sce')
-rw-r--r--3754/CH24/EX24.8/24_8.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3754/CH24/EX24.8/24_8.sce b/3754/CH24/EX24.8/24_8.sce
new file mode 100644
index 000000000..f8298daab
--- /dev/null
+++ b/3754/CH24/EX24.8/24_8.sce
@@ -0,0 +1,27 @@
+clear//
+
+//Variables
+
+VCC = -18.0 //Source voltage (in volts)
+RC = 4.3 //Collector resistance (in kilo-ohm)
+RE = 1.0 //Emitter resistance (in kilo-ohm)
+beta = 200.0 //Common emitter current gain
+VBE = -0.7 //Emitter-to-Base Voltage (in volts)
+R1 = 39.0 //Resistance (in kilo-ohm)
+R2 = 8.2 //Resistance (in kilo-ohm)
+RL = 3.0 //Load resistance (in kilo-ohm)
+
+//Calculation
+
+Vth = VCC * R2 / (R1 + R2) //Thevenin's voltage (in volts)
+Rth = R1 * R2 / (R1 + R2) //Thevenin's equivalent voltage (in volts)
+IC = (Vth - VBE)/(RE + Rth/beta) //Collector current (in milli-Ampere)
+IE = -IC //Emitter current (in milli-Amper)
+r1e = 30.0/IE * 10**-3 //a.ac resistance (in kilo-ohm)
+Ris = Rth * beta*r1e/(Rth + beta*r1e) //input resistance of the stage (in ohm)
+rL = RC * RL / (RC + RL) //a.c. load resistance (in kilo-ohm)
+Av = rL / r1e //Voltage gain
+
+//Result
+
+printf("\n Voltage gain is %0.1f .",Av)