solve_one_ineq: Solve the roots of quadratic polynomials related to testing...

View source: R/trunc_sets.R

solve_one_ineqR Documentation

Solve the roots of quadratic polynomials related to testing for a difference in means

Description

Solves ax^2 + bx + c \ge 0, then returns the complement of the solution set wrt to the real line, unless the complement is empty, in which case the function returns NA.

Usage

solve_one_ineq(A, B, C, tol = 1e-10)

Arguments

A,

B, C the coefficients of the quadratic equation.

tol

if |a|, |b|, or |c| is not larger than tol, then treat it as zero.

Value

Returns an "Intervals" object containing NA or the complement of the solution set.


lucylgao/clusterpval documentation built on July 4, 2023, 4:40 p.m.