summaryrefslogtreecommitdiff
path: root/3754/CH30/EX30.10/30_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH30/EX30.10/30_10.sce')
-rw-r--r--3754/CH30/EX30.10/30_10.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3754/CH30/EX30.10/30_10.sce b/3754/CH30/EX30.10/30_10.sce
new file mode 100644
index 000000000..ef8d016d2
--- /dev/null
+++ b/3754/CH30/EX30.10/30_10.sce
@@ -0,0 +1,20 @@
+clear//
+
+//Variables
+
+gm = 2.0 * 10**-3 //Transconductance (in Ampere per volt)
+rd = 40.0 * 10**3 //Resistance (in ohm)
+RD = 20.0 * 10**3 //Drain resistance (in ohm)
+RG = 100.0 * 10**6 //Gate resistance (in ohm)
+
+//Calculation
+
+rL = RD * rd / (RD + rd) //a.c. equivalent resistance (in ohm)
+Av = -gm * rL //Voltage gain
+R1i = RG //input resistance (in ohm)
+R1o = rL //output resistance (in ohm)
+
+//Result
+
+printf("\n Voltage gain is %0.1f .",Av)
+printf("\n Input resistance is %0.3f Mega-ohm.\nOutput resistance is %0.1f kilo-ohm.",R1i*10**-6,R1o*10**-3)