summaryrefslogtreecommitdiff
path: root/3754/CH29/EX29.6/29_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH29/EX29.6/29_6.sce')
-rw-r--r--3754/CH29/EX29.6/29_6.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3754/CH29/EX29.6/29_6.sce b/3754/CH29/EX29.6/29_6.sce
new file mode 100644
index 000000000..9dc3ff0b2
--- /dev/null
+++ b/3754/CH29/EX29.6/29_6.sce
@@ -0,0 +1,18 @@
+clear//
+
+//Variables
+
+A1v = 100.0 //Voltage gain with negative feedback
+Vin = 50.0 * 10**-3 //Input voltage without feedback (in volts)
+V1in = 0.6 //Input voltage with feedback (in volts)
+
+//Calculation
+
+V1o = A1v * V1in //Output voltage with feedback (in volts)
+Vo = V1o //Output voltage without feedback (in volts)
+Av = Vo / Vin //Voltage gain without feedback
+beta = (Av/A1v - 1) / Av //feedback ratio
+
+//Result
+
+printf("\n The value of voltage gain without feedback is %0.3f .\nThe value of voltage gain with feedback is %0.3f .",Av,A1v)