How do you remove negative voltage from a sin, triangle or square wave?
To rectify a signal without introducing error from diode forward voltage drop, one has to use ideal rectifier op-amp circuit.



Both feedback branches must be present even if only one is used, to prevent the op-amp output from saturating.