summaryrefslogtreecommitdiff
path: root/3809/CH18/EX18.4/EX18_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH18/EX18.4/EX18_4.sce')
-rw-r--r--3809/CH18/EX18.4/EX18_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3809/CH18/EX18.4/EX18_4.sce b/3809/CH18/EX18.4/EX18_4.sce
new file mode 100644
index 000000000..c01a960e8
--- /dev/null
+++ b/3809/CH18/EX18.4/EX18_4.sce
@@ -0,0 +1,13 @@
+//Chapter 18, Example 18.4
+clc
+//Initialisation
+RE=1.2*10**3 //resistance in ohm
+RC=2.2*10**3 //resistance in ohm
+
+
+//Calculation
+av=-RC/RE //voltage gain
+
+
+//Results
+printf("Voltage gain = %.1f ",av) //wrong answer in the textbook