Find points of inversion of a curve.

find_inversions(x)

Arguments

x

A numeric vector.

Value

Vector of inversion points.

Examples

x <- sin(seq(0, 4 * pi, length.out = 100))
plot(x, type = "b")

find_inversions(x)
#> [1] 12.87478 37.62484 62.37516 87.12522