Linear and circular discrete convolution calculator
Convolve two finite sequences linearly or modulo a selected circular period.
How to use this calculator
Convolve two finite sequences linearly or modulo a selected circular period.
- Enter First sequence, Second sequence, Convolution model, Circular period, ignored in linear mode. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Linear and circular discrete convolution calculator
Convolve two finite sequences linearly or modulo a selected circular period.
Inputs and units
- First sequence: Finite numeric sequence in sample order; linear convolution uses zero extension outside its bounds.
- Second sequence: Finite impulse-response or second input sequence; its order affects the convolution result.
- Convolution model: Choose linear full convolution or circular convolution modulo the entered period.
- Circular period, ignored in linear mode: Positive integer output period used in circular mode and intentionally ignored in linear mode.
Formula and method
Linear: y[n]=Σk a[k]b[n−k]; circular: y[n]=Σk a[k]b[(n−k) mod N]
Worked example
Linear convolution of [1,2,3] and [1,−1] is [1,1,1,−3].
Interpreting the result
Linear output has length Lₐ+Lᵦ−1; circular output folds samples into the chosen period and can differ from linear mode.
Assumptions and limits
Both sequences must be nonempty and finite. Circular period is a positive integer and is ignored in linear mode; sequence and period conventions must match the intended signal-processing task.
Sources and method
- Defines finite-sequence discrete linear convolution and its full output; the calculator also exposes a separately defined circular-period mode. SciPy signal.convolve documentation
Frequently asked questions
What does this linear and circular discrete convolution result tell me?
Linear output has length Lₐ+Lᵦ−1; circular output folds samples into the chosen period and can differ from linear mode.
What assumptions should I check?
Both sequences must be nonempty and finite. Circular period is a positive integer and is ignored in linear mode; sequence and period conventions must match the intended signal-processing task.
How do I use the Linear and circular discrete convolution calculator?
Enter First sequence, Second sequence, Convolution model, Circular period, ignored in linear mode. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Linear and circular discrete convolution?
Linear convolution of [1,2,3] and [1,−1] is [1,1,1,−3].
What does the Linear and circular discrete convolution calculator calculate?
Convolve two finite sequences linearly or modulo a selected circular period.
See the calculation methodology.