<div dir="ltr">Dear list,<div><br></div><div>while hobbying on an experimental design, I'm looking for a simple analog circuit to give me the absolute value of the difference between two signals (mathematically written as |a-b|).</div><div><br></div><div>I already have a working circuit, but it's rather big for my needs. It uses an inverting opamp to invert signal A, followed by a bog-standard full wave precision rectifier circuit where -A and B are summed together and being rectified. The total is 3 opamps, 2 diodes and 9 resistors. As I need to repeat the circuit many times in the final application, I'm wondering: is there anything simpler that can do this?</div><div><br></div><div>Requirements:</div><div>- working across full audio range</div><div>- distortion as consequence of diode drops is no problem (might even be beneficial!)</div><div><br></div><div>Many thanks for any suggestions!</div><div><br></div><div>Regards,</div><div><br></div><div>Rutger</div></div>