G = 4; // voltage gain of the circuit r = G -1; // ratio of the resistances in the non-inverting op-amp circuit disp(r,"Rf/Ri =") //Result: //A suitable choice for R1 is 10K, Hence Rf = 30K