MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / th

Function th

test/compute-engine/special-functions.test.ts:1451–1452  ·  view source on GitHub ↗
(j: number)

Source from the content-addressed store, hash-verified

1449 expectApprox(ce.expr(['ExpIntegralEi', -2]), -0.04890051070806112, 1e-12);
1450 // Ci(−2) is the PRINCIPAL value Ci(2) + iπ (ruled 2026-09-01; the
1451 // machine kernel used to return the real part Ci(|x|) alone).
1452 const cm2 = ce.expr(['CosIntegral', -2]).N();
1453 expect(Math.abs(cm2.re - 0.4229808287748649)).toBeLessThan(1e-12);
1454 expect(cm2.im).toBeCloseTo(Math.PI, 12);
1455 });

Callers 1

Calls 2

NMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected