summaryrefslogtreecommitdiff
path: root/1184/CH2/EX2.12
diff options
context:
space:
mode:
Diffstat (limited to '1184/CH2/EX2.12')
-rwxr-xr-x1184/CH2/EX2.12/Ex2_12.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1184/CH2/EX2.12/Ex2_12.sce b/1184/CH2/EX2.12/Ex2_12.sce
new file mode 100755
index 000000000..0929d3ea9
--- /dev/null
+++ b/1184/CH2/EX2.12/Ex2_12.sce
@@ -0,0 +1,15 @@
+//Example 2-12, Page No - 40
+
+clear
+clc
+
+gain1 = 6.8
+gain2 = 14.3
+attenuation1 = -16.4
+attenuation2 = -2.9
+vout = 800*10^-3
+
+At = gain1+gain2+attenuation1+attenuation2
+vin = vout/10^(At/20)
+
+printf('The input voltage is %.1f mV',vin*10^3)