diff options
Diffstat (limited to '147/CH10/EX10.2/Example10_2.sce')
-rw-r--r-- | 147/CH10/EX10.2/Example10_2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/147/CH10/EX10.2/Example10_2.sce b/147/CH10/EX10.2/Example10_2.sce new file mode 100644 index 000000000..767c18831 --- /dev/null +++ b/147/CH10/EX10.2/Example10_2.sce @@ -0,0 +1,13 @@ +//input impedance Rd, Open loop voltage gain Aol, Feedback resistance Rf
+close();
+clear;
+clc;
+R1 = 1000;
+Rf = 10000;
+Rd = 1000;
+Aol = -10^(4);
+Av = Aol/(1+R1/Rf*(1-Aol)+R1/Rd);
+Avideal = -Rf/R1;
+//Percent error 'E'
+E = (Av-Avideal)/Av*100;
+mprintf('Av = %0.3f \nAvideal = %0.0f\nand percent error is %0.2f %%',Av,Avideal,E);
\ No newline at end of file |