summaryrefslogtreecommitdiff
path: root/3754/CH25/EX25.6/25_6.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.6/25_6.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.6/25_6.sce')
-rw-r--r--3754/CH25/EX25.6/25_6.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3754/CH25/EX25.6/25_6.sce b/3754/CH25/EX25.6/25_6.sce
new file mode 100644
index 000000000..887f3fc6e
--- /dev/null
+++ b/3754/CH25/EX25.6/25_6.sce
@@ -0,0 +1,22 @@
+clear//
+
+//Variables
+
+hib = 28.0 //hib (in ohm)
+hfb = -0.98 //hfb
+hrb = 5.0 * 10**-4 //hrb
+hob = 0.34 * 10**-6 //hoh (in Siemen)
+rL = 1.2 * 10**3 //a.c. load resistance (in ohm)
+RS = 0.0 //Source resistance (in ohm)
+
+//Calculation
+
+Ai = -(hfb/(1 + hob * rL)) //Current gain
+Ri = hib + hrb * Ai * rL //Input resistance (in ohm)
+dh = hib * hob - hrb * hfb //change in h
+Ro = (RS + hib)/(RS*hib + dh)//Output resistance (in ohm)
+Av = Ai * rL / Ri //Voltage gain
+
+//Result
+
+printf("\n The value of input resistance is %0.1f ohm.\nThe value of output resistance is %0.0f kilo-ohm.\nThe value of current gain is %0.2f .\nThe value of voltage gain is %0.0f .",Ri,Ro*10**-3,Ai,Av)