num-roots-in-0-1

▸ function numRootsIn01 (p: number[]): number

Defined in roots/descartes/double/num-roots-in-0-1.ts:24

Returns the exact number of distinct real roots in the open interval (0,1) of the given polynomial - subject to floating point underflow / overflow of intermediate calculations.

Parameters:

NameTypeDescription
pnumber[]a polynomial with coefficients given densely as an array of double precision floating point numbers from highest to lowest power, e.g. [5,-3,0] represents the polynomial 5x^2 - 3x

Returns: number