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

Function replacesTo

test/compute-engine/fungrim-loader.test.ts:964–972  ·  view source on GitHub ↗
(input: unknown, expected: unknown)

Source from the content-addressed store, hash-verified

962 simplifiesTo(
963 ['Power', 'ExponentialE', ['Divide', ['Multiply', 'ImaginaryUnit', 'Pi'], 2]],
964 'ImaginaryUnit'
965 ));
966
967 // lambertw
968 it('LambertW(0) → 0 [fungrim:0be17d]', () =>
969 simplifiesTo(['LambertW', 0], 0));
970
971 // totient — `eval` guard (IsPrime) provable on a literal prime
972 it('Totient(7) → 6 (eval guard: IsPrime(7) ⇒ True) [fungrim:cb410e]', () =>
973 simplifiesTo(['Totient', 7], 6));
974});
975

Callers 1

Calls 3

replaceMethod · 0.65
exprMethod · 0.65
isEqualMethod · 0.65

Tested by

no test coverage detected