summaryrefslogtreecommitdiff
path: root/3754/CH25/EX25.2/25_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3754/CH25/EX25.2/25_2.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/CH25/EX25.2/25_2.sce')
-rw-r--r--3754/CH25/EX25.2/25_2.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3754/CH25/EX25.2/25_2.sce b/3754/CH25/EX25.2/25_2.sce
new file mode 100644
index 000000000..3237ecd4a
--- /dev/null
+++ b/3754/CH25/EX25.2/25_2.sce
@@ -0,0 +1,27 @@
+clear//
+
+//Variables
+
+hie = 1.0 * 10**3 //hie (in ohm)
+hre = 1.0 * 10**-4 //hre
+hoe = 100.0 * 10**-6 //hoe (in mho)
+RC = 1.0 * 10**3 //Collector resistance (in ohm)
+RS = 1000.0 //Source resistance (in ohm)
+hfe=50.0;beta=50.0;
+
+//Calculation
+
+rL = RC //a.c. load resistance (in ohm)
+Ai = -hfe /(1 + hoe * rL) //Current gain of a transistor
+Ri = hie + hre * Ai * rL //Input resistance looking directly into the base (in ohm)
+Ris = Ri //Iput resistance of the amplified stage (in ohm)
+dh = hie * hoe - hre * hfe //Change in h
+Ro = (RS + hie)/(RS * hoe + dh) //Output resistance looking directly into collector (in ohm)
+Ros = Ro * rL /(Ro + rL) //Output resistance of the amplified stage (in ohm)
+Ais = Ai * RS / (RS + Ris) //Current gain of amplified stage
+Av = Ai * rL / Ri //Voltage gain of transistor
+Avs = Av * Ris / (RS + Ris) //Voltage gain of amplified stage
+
+//Result
+
+printf("\n Input resistance of the amplifier stage is %0.0f ohm.\nOutput resistance of amplifier stage is %0.0f ohm.\nCurrent gain of amplified stage is %0.1f \nVoltage gain of amplifier stage is %0.1f .",Ris,Ros,Ais,Avs)