Go to h**p://www.ibiblio.org/obp/books/socratic/output/opamp8.pdf.
.
The circuit in question 8 is the classic precision full wave rectifier. By placing a capacitor across the feedback resistor of the 2nd op-amp stage, you wil get a DC voltage that is equal to the average of the input voltage, regardless of the input voltage waveform.