MCPcopy Create free account
hub / github.com/alignoth/alignoth / EM

Function EM

resources/vega.min.js:19499–19521  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

19497 return ow((jb + t) / 2);
19498 }
19499 function EM(t, e) {
19500 var n = Jb(t),
19501 r = t === e ? nw(t) : tw(n / Jb(e)) / tw(MM(e) / MM(t)),
19502 i = (n * ew(MM(t), r)) / r;
19503 if (!r) return kM;
19504 function o(t, e) {
19505 i > 0 ? e < -jb + Ub && (e = -jb + Ub) : e > jb - Ub && (e = jb - Ub);
19506 var n = i / ew(MM(e), r);
19507 return [n * nw(r * t), i - n * Jb(r * t)];
19508 }
19509 return (
19510 (o.invert = function (t, e) {
19511 var n = i - e,
19512 o = rw(r) * iw(t * t + n * n),
19513 a = Xb(t, Gb(n)) * rw(n);
19514 return (
19515 n * r < 0 && (a -= Pb * rw(t) * rw(n)),
19516 [a / r, 2 * Vb(ew(i / o, 1 / r)) - jb]
19517 );
19518 }),
19519 o
19520 );
19521 }
19522 function DM(t, e) {
19523 return [t, e];
19524 }

Callers

nothing calls this directly

Calls 1

MMFunction · 0.85

Tested by

no test coverage detected