summaryrefslogtreecommitdiff
path: root/293/CH2/EX2.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /293/CH2/EX2.7
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 '293/CH2/EX2.7')
-rwxr-xr-x293/CH2/EX2.7/eg2_7.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/293/CH2/EX2.7/eg2_7.sce b/293/CH2/EX2.7/eg2_7.sce
new file mode 100755
index 000000000..3f437fe3a
--- /dev/null
+++ b/293/CH2/EX2.7/eg2_7.sce
@@ -0,0 +1,17 @@
+//a
+Ri = 1;
+Rf = 39;
+A = 10^5; //open loop gain of the op-amp
+G = A/(1 + (A*Ri/(Ri+Rf))); //actual voltage gain of the circuit
+disp("a")
+disp(G,"actual voltage of the circuit =")
+
+//b
+G1 = 1 + (Rf/Ri); // voltage gain of the circuit with infinite open loop gain
+disp("b")
+disp(G1,"for ideal case the voltage gain =")
+
+//c
+er = ((G1 - G)/G)*100; //percent error
+disp("c")
+disp(er,"percent error of the ideal value compared to the actual value=") \ No newline at end of file