import { twoDiff, scaleExpansion2, eMultBy2, eAdd, eMult, eDiff } from "big-float-ts"; // We *have* to do the below to improve performance with bundlers❗ The assignee is a getter❗ The assigned is a pure function❗ const td = twoDiff; const emult = eMult; const sce = scaleExpansion2; const em2 = eMultBy2; const eadd = eAdd; const ediff = eDiff; /** * Returns the result of multiplying a floating point expansion by 4. * * * **error free** * * * see [[Shewchuk](https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf)](https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf) * * @param e a floating point expansion * * @internal */ function em4(e: number[]) { const e_: number[] = []; for (let i=0; i