root-interval

Ƭ RootInterval { tS: number; tE: number; multiplicity: number }

Defined in roots/certified/root-interval.ts:10

Represents a root(s) bracketing interval

  • precondition: tE - tS when calculated in double precision must be exact - this is actually almost guaranteed due to a theorem stating that if |a - b| <= |a| and |a - b| <= |b| then a - b is exact
NameTypeDescription
tSnumberthe minimum possible root value
tEnumberthe maximum possible root value
multiplicitynumberthe parity (even or odd) of the multiplicity or the exact multiplicity depending on context

▸ function createRootExact (t: number): RootInterval

Defined in roots/certified/root-interval.ts:31

Simple function that creates and returns an exact root (with a bracketing interval width of 0 and multiplicity 1)

Parameters:

NameTypeDescription
tnumber

Returns: RootInterval


▸ function mid (ri: RootInterval): number

Defined in roots/certified/root-interval.ts:44

Simple function that returns the middle of the root bracketing interval - can be used to estimate the root

Parameters:

NameTypeDescription
riRootIntervala root interval

Returns: number