{"ScriptPreparationCode":"var { evaluate, allRoots, hornerErrorBound } = FloPoly;\r\nvar { flatRootsArr, flatCoefficientsArr } = FloPoly.random;\r\n\r\nconst orders = [3,4,7,12,15];\r\nvar pssRealRootsOnly = [\r\n \t// Flat random distribution of roots in [-10,10]\r\n\tflatRootsArr(100, orders[0], -10, 10, 11111),\r\n\tflatRootsArr(100, orders[1], -10, 10, 22222),\r\n\tflatRootsArr(100, orders[2], -10, 10, 33333),\r\n\tflatRootsArr(100, orders[3], -10, 10, 44444),\r\n\tflatRootsArr(100, orders[4], -10, 10, 55555),\r\n];\r\nvar pssRandomCoefficients = [\r\n \t// Flat random distribution of coefficients in [-10,10]\r\n\tflatCoefficientsArr(100, orders[0], -10, 10, 66666),\r\n\tflatCoefficientsArr(100, orders[1], -10, 10, 77777),\r\n\tflatCoefficientsArr(100, orders[2], -10, 10, 88888),\r\n\tflatCoefficientsArr(100, orders[3], -10, 10, 99999),\r\n\tflatCoefficientsArr(100, orders[4], -10, 10, 12121),\r\n];","TestCases":[{"Name":"100 cubic polynomials with 3 real roots","Code":"for (let i=0; i\u003CpssRealRootsOnly[0].length; i\u002B\u002B) {\r\n\tvar p = pssRealRootsOnly[0][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 cubic polynomials with random coefficients","Code":"for (let i=0; i\u003CpssRandomCoefficients[0].length; i\u002B\u002B) {\r\n\tvar p = pssRandomCoefficients[0][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 4 polynomials with 4 real roots","Code":"for (let i=0; i\u003CpssRealRootsOnly[1].length; i\u002B\u002B) {\r\n\tvar p = pssRealRootsOnly[1][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 4 polynomials with random coefficients","Code":"for (let i=0; i\u003CpssRandomCoefficients[1].length; i\u002B\u002B) {\r\n\tvar p = pssRandomCoefficients[1][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 7 polynomials with 7 real roots","Code":"for (let i=0; i\u003CpssRealRootsOnly[2].length; i\u002B\u002B) {\r\n\tvar p = pssRealRootsOnly[2][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 7 polynomials with random coefficients","Code":"for (let i=0; i\u003CpssRandomCoefficients[2].length; i\u002B\u002B) {\r\n\tvar p = pssRandomCoefficients[2][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 12 polynomials with 12 real roots","Code":"for (let i=0; i\u003CpssRealRootsOnly[3].length; i\u002B\u002B) {\r\n\tvar p = pssRealRootsOnly[3][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 deg 12 polynomials with random coefficients","Code":"for (let i=0; i\u003CpssRandomCoefficients[3].length; i\u002B\u002B) {\r\n\tvar p = pssRandomCoefficients[3][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 degree 15 polynomials with 15 real roots","Code":"for (let i=0; i\u003CpssRealRootsOnly[4].length; i\u002B\u002B) {\r\n\tvar p = pssRealRootsOnly[4][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false},{"Name":"100 deg 15 polynomials with random coefficients","Code":"for (let i=0; i\u003CpssRandomCoefficients[4].length; i\u002B\u002B) {\r\n\tvar p = pssRandomCoefficients[4][i];\r\n\tvar roots = allRoots(p);\r\n}","IsDeferred":false}]}