compIntForZEachSlice: Solve the roots of quadratic polynomials related to truncated...

Description Usage Arguments Details Value

Description

This function solves the inequality Ax^2 + Bx + C ≥ 0, then returns the complement of the solution set (w.r.t. to \mathbb{R}).

Usage

1
compIntForZEachSlice(coef, tol = 1e-15)

Arguments

coef,

the coefficients (A, B, C) of the quadratic polynomial.

tol,

the tolerance of roots.

Details

The reason we compute the complement instead of the original solution set is that when taking intersection of multiple sets, the strategy of "taking union of complements, then taking comlement" is substantially faster than taking intersections directly based on the intervals package.

Value

This function returns an "Intervals" object.


shuxiaoc/outference documentation built on July 8, 2019, 8:30 p.m.