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 - tSwhen 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|thena - bis exact
| Name | Type | Description |
|---|---|---|
tS | number | the minimum possible root value |
tE | number | the maximum possible root value |
multiplicity | number | the 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:
| Name | Type | Description |
|---|---|---|
t | number |
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:
| Name | Type | Description |
|---|---|---|
ri | RootInterval | a root interval |
Returns: number