C/C++ : Convolution Source Code In mathematics and, in particular, functional analysis, convolution is a mathematical operation on two functions f and g, producing a third function that is typically viewed as a modified version of one of the original functions (from wikipedia.com). Convolution of two square pulses: the resulting waveform is a triangular pulse.