double-double
Version:
Pure double-double precision functions *with strict error bounds*.
15 lines (14 loc) • 531 B
TypeScript
/**
* Returns the result of the square root of a double floating point number
* together with an absolute error bound where x_ is an absolute error
* bound on the input value.
* * see also "A Reduced Product of Absolute and Relative Error Bounds for Floating-point Analysis"
* by Maxime Jacquemin, Sylvie Putot, and Franck Vedrine
* @param x numerator
* @param x_ absolute value error bound in numerator
*/
declare function sqrtWithErr(x: number, x_: number): {
est: number;
err: number;
};
export { sqrtWithErr };