summaryrefslogtreecommitdiff
path: root/3809/CH17/EX17.1/EX17_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH17/EX17.1/EX17_1.sce')
-rw-r--r--3809/CH17/EX17.1/EX17_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3809/CH17/EX17.1/EX17_1.sce b/3809/CH17/EX17.1/EX17_1.sce
new file mode 100644
index 000000000..b56218817
--- /dev/null
+++ b/3809/CH17/EX17.1/EX17_1.sce
@@ -0,0 +1,17 @@
+//Chapter 17, Example 17.1
+clc
+//Initialisation
+rd=100*10**3 //resistance in ohm
+gm=2*10**-3 //in seimens
+RD=2*10**3 //resistance in ohm
+RG=10**6 //resistance in ohm
+
+//Calculation
+ro=((rd*RD)/(rd+RD)) //Input Resistance
+v=-gm*ro //Small Signal Voltage Gain
+ri=RG //Input Resistance
+
+//Results
+printf("Small Signal Voltage Gain = %.1f \n",v)
+printf("Input Resistance, ri = %d MOhm \n",ri/10**6)
+printf("Ouput Resistance, ro = %d kOhm \n",round(ro/10**3))