summaryrefslogtreecommitdiff
path: root/1757/CH4/EX4.5/EX4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH4/EX4.5/EX4_5.sce')
-rwxr-xr-x1757/CH4/EX4.5/EX4_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1757/CH4/EX4.5/EX4_5.sce b/1757/CH4/EX4.5/EX4_5.sce
new file mode 100755
index 000000000..c110fea47
--- /dev/null
+++ b/1757/CH4/EX4.5/EX4_5.sce
@@ -0,0 +1,17 @@
+//Example 4.5 // Determine the differece voltage and open loop gain of an op-amp
+clc ;
+clear ;
+close ;
+V1 = 5 ; // volt // input voltage // GND
+V2 = -5 ; // volt
+Vo = -20 ; //volt // output voltage
+
+// the difference voltage is given by
+ Vd = V2-V1 ;
+disp(' The difference voltage is = '+string(Vd)+' V ');
+
+// open loop gain
+A = (Vo/Vd);
+disp(' The open loop gain is = '+string(A)+' ');
+
+