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

Function identity

test/compute-engine/special-functions.test.ts:743–751  ·  view source on GitHub ↗
(name: string, lhs: string, rhs: string, p = 60)

Source from the content-addressed store, hash-verified

741 expectApprox(ce.expr(['AiryAi', 1]), 0.13529241631288141, 1e-12);
742 });
743
744 test('Ai(-1) ≈ 0.5355608832923521', () => {
745 expectApprox(ce.expr(['AiryAi', -1]), 0.5355608832923521, 1e-12);
746 });
747
748 test('Ai(3) ≈ 0.006591139357460719', () => {
749 // Previous expected value (…7460011, tolerance 1e-5) was fitted to the
750 // plain-double series; the series now sums in double-double (P0-24).
751 expectApprox(ce.expr(['AiryAi', 3]), 0.006591139357460719, 1e-12);
752 });
753
754 test('Ai(10) ≈ 1.1047532552898686e-10 (asymptotic, was 7.6 digits)', () => {

Callers 1

Calls 4

parseMethod · 0.95
matchingSigDigitsFunction · 0.70
toStringMethod · 0.65
NMethod · 0.65

Tested by

no test coverage detected