quaeratin
Version:
An extended precision floating point library (as per Shewchuk) - precision only limited by overflow / underflow
16 lines • 412 B
JavaScript
/**
* Returns the negative of the given floating point expansion.
* * see [Shewchuk](https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf)
*
* @param e a floating point expansion
*/
function eNegativeOf(e) {
const m = e.length;
const h = new Array(m);
for (let i = 0; i < m; i++) {
h[i] = -e[i];
}
return h;
}
export { eNegativeOf };
//# sourceMappingURL=e-negative-of.js.map