powered by
Determine whether a composition is non-decreasing or non-increasing in an index.
is_incr(object, idx)is_decr(object, idx)# S4 method for Atom is_incr(object, idx)# S4 method for Atom is_decr(object, idx)
is_decr(object, idx)
# S4 method for Atom is_incr(object, idx)
# S4 method for Atom is_decr(object, idx)
A logical value.
A Atom object.
An index into the atom.
x <- Variable() is_incr(log(x), 1) is_incr(x^2, 1) is_decr(min(x), 1) is_decr(abs(x), 1)
Run the code above in your browser using DataLab