import { upperToLowerBound } from "../upper-to-lower-bound.js"; import { negativeRootLowerBound_LMQ } from "./negative-root-lower-bound-lmq.js"; /** * Returns a negative upper (closer to zero) bound of the real roots of the * given polynomial. * * See algoritm 6 of the paper by Vigklas, Akritas and StrzeboĊ„ski, * specifically the LocalMaxQuadratic algorithm hence LMQ. * * @param p a polynomial with coefficients given densely as an array of double * floating point numbers from highest to lowest power, e.g. `[5,-3,0]` * represents the polynomial `5x^2 - 3x` * * @doc */ const negativeRootUpperBound_LMQ = upperToLowerBound(negativeRootLowerBound_LMQ); export { negativeRootUpperBound_LMQ }