tests/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)))

Try the pracma package in your browser

Any scripts or data that you put into this service are public.

pracma documentation built on March 19, 2024, 3:05 a.m.