The op-amp has advantages over other amplifiers because its gain is determined by external passive components rather than its internal characteristics. The op-amp uses an amplifier with very high open-loop gain, and when connected in a feedback loop, the amplifier performs mathematical operations defined by the external components. For example, when an input voltage is applied, the op-amp outputs current to drive the feedback resistor until the negative input matches the input voltage.