diff options
Diffstat (limited to '1757/CH4/EX4.8/EX4_8.sce')
-rwxr-xr-x | 1757/CH4/EX4.8/EX4_8.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1757/CH4/EX4.8/EX4_8.sce b/1757/CH4/EX4.8/EX4_8.sce new file mode 100755 index 000000000..b42f577e3 --- /dev/null +++ b/1757/CH4/EX4.8/EX4_8.sce @@ -0,0 +1,19 @@ +//Example4.8 // to find out closed loop gain and output voltage Vo
+clc;
+clear;
+close;
+R1 = 10 ; //kilo ohm // input resistance
+R3 = 10 ; //kilo ohm // input resistance
+R2 = 25 ; // kilo ohm // feedback resistance
+R4 = 25 ; // kilo ohm // feedback resistance
+Vin2 = 10 ; //volt // input voltage
+Vin1 = -10 ; //volt // input voltage
+
+// closed loop gain of differntial op-amp is given by
+Ac = (R2/R1) ;
+Ac = abs(Ac);
+disp('The closed loop gain of differntial op-amp is = '+string(Ac)+' ');
+
+// the output voltage of an non-inverting op-amp is given by
+Vo = (R2/R1)*(Vin2-Vin1) ;
+disp('The output voltage of an non-inverting op-amp is= '+string(Vo)+' V ');
|