is_positives: Are these polynomials positive?

Description Usage Arguments Details Value

Description

Check if a set of polynomial is positive (or negative) inside a given interval.

Usage

1
is_positives(poly_coefs, a, b, positive = TRUE, EPS = 1e-06)

Arguments

poly_coefs

a matrix of polynomial coefficients in ascending order, each column corresponds to a polynomial. (num mat)

a

the lower bound. (num)

b

the upper bound. (num)

positive

if it is FALSE, check if the polynomial is negative. (bool)

EPS

error tolerance. (num)

Details

This can be done by checking wherether the roots of the polynomials have even multiplicities. In addition, one of the points in the interval must have the desired sign.

Value

a boolean vector indicating whether the condition in the description is met.


weiyaw/blackbox documentation built on June 7, 2019, 5:12 a.m.