quaeratin
Version:
An extended precision floating point library (as per Shewchuk) - precision only limited by overflow / underflow
16 lines • 411 B
JavaScript
/**
* Returns the result of multiplying a floating point expansion by 2.
* * **error free**
* * see [Shewchuk](https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf)
*
* @param e a floating point expansion
*/
function eMultBy2(e) {
const e_ = [];
for (let i = 0; i < e.length; i++) {
e_.push(2 * e[i]);
}
return e_;
}
export { eMultBy2 };
//# sourceMappingURL=e-mult-by-2.js.map