summaryrefslogtreecommitdiff
path: root/1757/CH4/EX4.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1757/CH4/EX4.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1757/CH4/EX4.2')
-rwxr-xr-x1757/CH4/EX4.2/EX4_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1757/CH4/EX4.2/EX4_2.sce b/1757/CH4/EX4.2/EX4_2.sce
new file mode 100755
index 000000000..ba065d5c0
--- /dev/null
+++ b/1757/CH4/EX4.2/EX4_2.sce
@@ -0,0 +1,15 @@
+//Example 4.2 // Determine the differece voltage and open loop gain of an op-amp
+clc ;
+clear ;
+close ;
+V1 = -5 ; // volt // input voltage
+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)+' ');