import { squares, squares4 } from 'squares-rng'; import { reduceSignificand } from "big-float-ts"; const { ceil, log2, abs, floor } = Math; /** * * @param N the number of polynomials to generate * @param rngShift a random seed to shift the range of generated points * @param maxBitLength the maximum bitlength of the input bezier points * @param maxCoordinate the maximum coordinate of the input bezier curves - can really be almost anything */ function getRandomCubics( N: number, rngShift = 0, maxBitLength = 60, maxCoordinate = 16384): number[][][] { let pss: number[][][] = []; for (let i=0; i