condition-number

▸ function conditionNumber (p: number[], x: number): number

Defined in error-analysis/condition-number.ts:18

Returns an accurate estimate (K === 4 => double-double-double-double precision) of the condition number of the given polynomial when evaluated at a given point.

  • for testing purposes

Parameters:

NameTypeDescription
pnumber[]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
xnumber-

Returns: number