/** * Transposes the given polynomial (given with multi-precision coefficients) * into multiple polynomials with each consecutive polynomial 'adjusting' * the prior one to higher precision. * * @param p * * @internal */ function transposePoly(p: number[][]): number[][] { // transpose the polynomial coefficients into multiple polynomials const len = p[0].length; const p_: number[][] = []; for (let i=0; i