{"ScriptPreparationCode":"const abs = Math.abs, min = Math.min, max = Math.max, PI = Math.PI, PI2 = PI / 2;\r\nconst FAT2 = {\r\n ax: 0.1, ay: 0.1\r\n}; //variables for gc (v8 optimizations);\r\nlet a = 0.1, s = 0.1, r = 0.1;\r\nvar fastAtan2 = (y, x) =\u003E {\r\n FAT2.ax = abs(x);\r\n FAT2.ay = abs(y);\r\n a = min(FAT2.ax, FAT2.ay) / max(x, y);\r\n s = a * a;\r\n r = ((-0.0464964749 * s \u002B 0.15931422) * s - 0.327622764) * s * a \u002B a;\r\n if (FAT2.ay \u003E FAT2.ax) r = PI2 - r;\r\n if (x \u003C 0) r = PI - r;\r\n if (y \u003C 0) r = -r;\r\n return r;\r\n}; //this is the fastest i can get it rn","TestCases":[{"Name":"Math.atan2","Code":"var k = [1, .23, 0.12, 929, 8172, 9.2, 21.2].map(e =\u003E Math.atan2(e, .5));","IsDeferred":false},{"Name":"fast approx. atan2","Code":"var k = [1, .23, 0.12, 929, 8172, 9.2, 21.2].map(e =\u003E fastAtan2(e, .5));","IsDeferred":false}]}