Consider the op-amp circuit shown in the figure below If the op-amp and the diode are ideal, then the circuit works as.