https://github.com/cran/pracma
Raw File
Tip revision: 84a50252b184200bc6328ef733b7f94da0b64e4b authored by Hans W. Borchers on 29 May 2016, 21:34:12 UTC
version 1.9.3
Tip revision: 84a5025
findintervals.R
##
##  f i n d i n t e r v a l s . R  Test suite
##

findintervals <- pracma::findintervals

identical(findintervals(0, zapsmall(sin(seq(0, 10*pi, len=100)))),
          as.integer(c(1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)))
back to top