Skip to content

Function sinc

function sinc(const T1 &) math

template <numeric T1>
KFR_FUNCTION flt_type<T1> sinc(const T1& x)

Returns the (normalized) sinc function of x.

\\[ sinc(x) = \begin{cases} \frac{\sin(x)}{x} & |x| > \varepsilon \\ 1 & |x| \le \varepsilon \end{cases} \\]
Template parameters
T1 Scalar or vector type. Integer arguments are promoted to a floating-point type.
Parameters
x Argument in radians.
Returns
Sinc of x, in the same floating-point type as x (or its element type for vectors).

Fully qualified name: kfr::sinc(const T1 &)

Declared at math/sin_cos.hpp:219

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.