is_monotone: Check if polynomial is monotone over desired region.

Description Usage Arguments Value Examples

View source: R/is-monotone.R

Description

Check if polynomial is monotone over desired region.

Usage

1
is_monotone(p, region = c(-Inf, Inf), EPS = 1e-05)

Arguments

p

polynomial

region

numeric is polynomial monotone over this region.

EPS

numerical precision

Value

TRUE if polynomial is monotone within region, FALSE otherwise.

Examples

1
2
pol <- polynomial(c(1,4,5,2))
is_monotone(pol, region = c(1,5))

bonStats/gcreg documentation built on May 20, 2019, 5:44 p.m.