Find zero crossings of a vector, i.e., indices when the numeric variable crosses 0. It is useful for finding the points where a function changes by looking at the zero crossings of its derivative.
zero_crossings(x)
find_inversions(x)Vector of zero crossings or points of inversion.
Based on the uniroot.all function from the rootSolve package.