summaryrefslogtreecommitdiff
path: root/3754/CH24/EX24.1/24_1.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.1/24_1.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.1/24_1.sce')
-rw-r--r--3754/CH24/EX24.1/24_1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/3754/CH24/EX24.1/24_1.sce b/3754/CH24/EX24.1/24_1.sce
new file mode 100644
index 000000000..176c9841b
--- /dev/null
+++ b/3754/CH24/EX24.1/24_1.sce
@@ -0,0 +1,24 @@
+clear//
+
+//Variables
+
+VCC = 10.0 //Source voltage (in volts)
+RC = 10.0 //Collector resistance (in kilo-ohm)
+RB = 1.0 * 10**3 //Base resistance (in kilo-ohm)
+beta = 100.0 //Common emitter current gain
+VBE = 0.7 //Emitter-to-Base Voltage (in volts)
+
+//Calculation
+
+IB = (VCC - VBE) / RB //Base current (in milli-Ampere)
+IC = beta * IB //Collector current (in milli-Ampere)
+IE = IC //Emitter current (in milli-Ampere)
+r1e = 25.0 / IE * 10**-3 //a.c resistance of emitter diode (in kilo-ohm)
+R1 = beta * r1e //Input resistance looking directly into the base (in kilo-ohm)
+Ris = RB * R1/(RB + R1) //Stage input resistance (in kilo-ohm)
+Ro = RC //Output resistance (in kilo-ohm)
+Av = RC / r1e //Voltage gain
+
+//Result
+
+printf("\n Input resistance looking into the base is %0.2f kilo-ohm.\nInput resistance of the stage is %0.3f kilo-ohm.\nOutput resistance is %0.3f kilo-ohm.\nVoltage gain is %0.3f .",R1,Ris,Ro,Av)