Dirichlet (FPScript)

21.09.2021

Calculates the Dirichlet function, i.e. the periodic sinc function.

Syntax

Dirichlet(Angle, n)

 

The syntax of the Dirichlet function consists of the following parts:

Part

Description

Angle

The angle in radians.

All data structures are allowed. All numeric data types are permitted.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

n

The parameter n of the Dirichlet function.

Permitted data structures are scalar value. All integral data types are permitted.

The value must be greater or equal to 1.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Remarks

The data type of the result is always 64-bit floating point.

The structure of the result corresponds to that of the argument Angle. The calculation is done element-by-element where appropriate.

The result has the unit 1, if Angle has a unit. Otherwise, it has no unit.

For aggregate data structures, only the Y component is calculated.

The function is defined as -1k( for Angle = 2πk, k=0, ±1, ±2, ... and as Sin(n * Angle / 2) / (n * Sin(Angle / 2)) otherwise.

The following illustration shows the course of the function in the interval [-4π, 4π] for different n values:

Available in

FlexPro Basic, Professional, Developer Suite

Examples

Dirichlet(0, 2)

Results in 1.

Dim x
x = Series(-4 * PI, 4 * PI, 0.1)
Signal(Dirichlet(x, 2), x)
 

Calculates a signal with the function course using n = 2 in the interval [-4π, 4π].

See Also

Chirp Function

Sawtooth Function

Sinc Function

Square Function

Straightline Function

Share article or send as email:

You might be interested in these articles