summaryrefslogtreecommitdiff
path: root/3809/CH13/EX13.2/EX13_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH13/EX13.2/EX13_2.sce')
-rw-r--r--3809/CH13/EX13.2/EX13_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3809/CH13/EX13.2/EX13_2.sce b/3809/CH13/EX13.2/EX13_2.sce
new file mode 100644
index 000000000..17b4c2e47
--- /dev/null
+++ b/3809/CH13/EX13.2/EX13_2.sce
@@ -0,0 +1,19 @@
+//Chapter 13, Example 13.2
+
+clc
+//Initialisation'
+ri=10**3 //resistance in ohm
+rs=100 //resistance in ohm
+rl=50 //resistance in ohm
+ro=10 //resistance in ohm
+vs=2 //voltage
+ao=10 //output gain
+
+//Calculation
+vi=(ri/(rs+ri))*vs //input voltage
+vo=ao*vi*(rl/(ro+rl)) //output voltage
+av=vo/vi //voltage gain
+
+//Results
+printf("Voltage Gain Av = %.2f",av)
+