summaryrefslogtreecommitdiff
path: root/2498/CH5/EX5.21/ex5_21.sce
diff options
context:
space:
mode:
Diffstat (limited to '2498/CH5/EX5.21/ex5_21.sce')
-rwxr-xr-x2498/CH5/EX5.21/ex5_21.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2498/CH5/EX5.21/ex5_21.sce b/2498/CH5/EX5.21/ex5_21.sce
new file mode 100755
index 000000000..5dd0be0ff
--- /dev/null
+++ b/2498/CH5/EX5.21/ex5_21.sce
@@ -0,0 +1,22 @@
+// Exa 5.21
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+D = 10/100;
+Df = 1/100;
+A = 200;
+Vs = 10;// in mV
+Vs = Vs * 10^-3;// in V
+// Df = D/(1+A*Beta);
+Beta = (((D/Df)-1)/A);
+// gain with feedback
+Af = A/(1+(A*Beta));
+disp(Af,"The gain with feedback is : ");
+// The output voltage
+Vo = Af*Vs;// in V
+disp(Vo,"The output voltage in V is : ");
+// The input voltage
+Vin = Df+(-Beta*Vo);// in V
+disp(Vin,"The input voltage in V is : ");