
/**
 * 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: number[]): number[] {
    const m = e.length;
    const h = new Array(m);

    for (let i=0; i<m; i++) {
        h[i] = -e[i];
    }

    return h;
}


export { eNegativeOf }
