diff options
Diffstat (limited to '1757/CH6/EX6.23/EX6_23.sce')
-rwxr-xr-x | 1757/CH6/EX6.23/EX6_23.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1757/CH6/EX6.23/EX6_23.sce b/1757/CH6/EX6.23/EX6_23.sce new file mode 100755 index 000000000..0274f119a --- /dev/null +++ b/1757/CH6/EX6.23/EX6_23.sce @@ -0,0 +1,20 @@ +// Example6.23 // to determine the output voltage of an op-amp
+clc;
+clear;
+close;
+Vin = 5 ; // V
+R1 = 25*10^3 ; // ohm
+R2 = 75*10^3 ; // ohm
+
+// in this problem op-amp A1 perform the voltage follower and op-amp A2 perform inverting amplifier and op-amp A3 perform non-inverting amplifier
+
+// the output voltage of follower op-amp A1
+Vo1 = Vin ;
+
+// the output of the inverting amplifier A2
+Vo2 = -((R2/R1)*Vo1) ;
+disp('The output of the inverting amplifier is = '+string(Vo2)+ ' V');
+
+// the output of the non-inverting amplifier A3
+Vo =(1+(R2/R1))*Vo1 ;
+disp('The output of the non-inverting amplifier is = '+string(Vo)+ ' V');
|