diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /293/CH2/EX2.7 | |
download | Scilab-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-x | 293/CH2/EX2.7/eg2_7.sce | 17 |
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 |