scipy.special.diric¶
- scipy.special.diric(x, n)[source]¶
Returns the periodic sinc function, also called the Dirichlet function
The Dirichlet function is defined as:
diric(x) = sin(x * n/2) / (n * sin(x / 2)),
where n is a positive integer.
Parameters: x : array_like
Input data
n : int
Integer defining the periodicity.
Returns: diric : ndarray