Skip to contents

Return the normalized or non-normalized sinc function. Returns 1 for x == 0 sinc(x) = sin(pi * x) / (pi * x) sinc(x) = sin(x) / (x)

Usage

sinc(x, normalized = TRUE)

Arguments

x

numeric

normalized

logical, return the normalized or non-normalized sinc function, defaults to TRUE

Examples

x <- seq(-10, 10, length.out = 1000)
plot(x, sinc(x), type = "l")
lines(x, sinc(x)^2, col = "Red")
abline(h = 0)


x <- seq(-10, 10, length.out = 1000)
plot(x, sinc(x, normalized = FALSE), type = "l")
lines(x, sinc(x, normalized = FALSE)^2, col = "Red")
abline(h = 0)