R/is.decreasing.R

Defines functions is.decreasing

Documented in is.decreasing

is.decreasing <-
function(fun, x.bound=c(-1,1), step=.01){
  x = seq(x.bound[1], x.bound[2], by=step)
  i = 1
  while(fun(x[i]) >= fun(x[i+1])){
    if (i < length(x)-1) {i <- i+1} else( return(TRUE) )
    }
  return(FALSE)
}

Try the FuzzyNumbers.Ext.2 package in your browser

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

FuzzyNumbers.Ext.2 documentation built on May 1, 2019, 9:15 p.m.