Discrete convolution calculator
Convolve two finite sequences using linear or circular boundary conditions. Your inputs stay on your device.
Set up your task
Starting local processing
Ready. Processing stays in this browser.
2 Your result
Your result updates in this browser. Check your input if the result looks unexpected.
How to use Discrete convolution calculator
Convolve two finite sequences using linear or circular boundary conditions. The pre-filled problem gives you a worked starting point. Compare the response with your own working before trying the self-check below.
- Check the example inputs: First sequence, Second sequence, Boundary condition.
- Change the inputs for your problem. Results update as you type, so finish entering the values before copying an answer.
- Use the working to check an intermediate value or assumption. Then change the example as suggested in the self-check and compare the result.
Supported inputs and limits
Use up to 64 values per sequence. Circular mode requires equal lengths and wraps the output index.
How it works
Discrete convolution combines values whose input indices sum to an output index. It appears in signal filtering when one sequence describes the signal and the other describes the filter. The output at any point is a weighted sum of shifted copies, with the boundary rule determining which indices contribute.
Linear mode uses zero outside the supplied finite sequences and produces the sum of their lengths minus one values. Circular mode treats the sequences as periodic. In that mode, contributions whose indices go past the final position wrap around and are added at the beginning.
Example
Run the pre-filled example. Its first result is “Convolution: 1 3 5 3”.
- First sequence
- 1 2 3
- Second sequence
- 1 1
- Boundary condition
- Linear (zero outside inputs)
Convolution: 1 3 5 3 Output length: 4 Values outside the sequences are zero.
Questions about Discrete convolution calculator
Why do the boundary conditions matter?
The same products can land in different output positions. A circular calculation folds every out-of-range index back into the finite sequence.
How does this differ from correlation?
Correlation slides one sequence against the other with a different reversal and conjugation convention. This calculator uses the index-sum definition of convolution for real data.
Convolve 1 2 3 with 1 in linear mode.
The output is 1 2 3. A single one at index zero is an impulse that leaves the sequence unchanged.
Related tools
Last updated