summaryrefslogtreecommitdiff
path: root/2330/CH16/EX16.2/ex16_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2330/CH16/EX16.2/ex16_2.sce')
-rwxr-xr-x2330/CH16/EX16.2/ex16_2.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2330/CH16/EX16.2/ex16_2.sce b/2330/CH16/EX16.2/ex16_2.sce
new file mode 100755
index 000000000..ff8cce4ce
--- /dev/null
+++ b/2330/CH16/EX16.2/ex16_2.sce
@@ -0,0 +1,21 @@
+// Example 16.2
+format('v',6)
+clc;
+clear;
+close;
+// given data
+A=20000;
+B= 0.02;
+Vin= 1;// in mV
+Vin= Vin*10^-3;// in V
+// The closed loop voltage gain,
+A_CL= A/(1+A*B);
+// The output voltage,
+Vout= Vin*A_CL;// in V
+// The error voltage,
+Verror= Vout/A;// in V
+Vout= Vout*10^3;// in mV
+Verror= Verror*10^6;// in µV
+disp(A_CL,"The value of A_CL is : ");
+disp(Vout,"The value of Vout in mV is : ")
+disp(Verror,"The value of Verror in µV is : ")