From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 293/CH2/EX2.7/eg2_7.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 293/CH2/EX2.7/eg2_7.sce (limited to '293/CH2/EX2.7') 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 -- cgit