summaryrefslogtreecommitdiff
path: root/3754/CH30/EX30.13/30_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH30/EX30.13/30_13.sce')
-rw-r--r--3754/CH30/EX30.13/30_13.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3754/CH30/EX30.13/30_13.sce b/3754/CH30/EX30.13/30_13.sce
new file mode 100644
index 000000000..7eaff9768
--- /dev/null
+++ b/3754/CH30/EX30.13/30_13.sce
@@ -0,0 +1,18 @@
+clear//
+
+//Variables
+
+gm = 4500.0 * 10**-6 //Transconductance (in Ampere per volt)
+RD = 3.0 * 10**3 //Drain resistance (in ohm)
+RL = 5.0 * 10**3 //Load resistance (in ohm)
+Vin = 100.0 * 10**-3 //Input voltage (in volts)
+ID = 2.0 * 10**-3 //Drain current (in Ampere)
+
+//Calculation
+
+rL = RD * RL / (RD + RL) //a.c. load resistance (in ohm)
+vo = -gm * rL * Vin //Output voltage (in volts)
+
+//Result
+
+printf("\n Output voltage is %0.3f V.",vo)