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

Function fuTestHelper

test/compute-engine/simplify.test.ts:1389–1392  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

1387 expect(e.subs({ u: 1, w: -1 }).N().im).toBeCloseTo(0, 10);
1388 });
1389
1390 test('(−u)² keeps even-power sign (no stray negation)', () => {
1391 const sq = ce.expr(['Negate', 'u']).pow(2);
1392 expect(sq.subs({ u: 3 }).N().re).toBeCloseTo(9, 10);
1393 });
1394
1395 test('exact numeric radicals still merge: √2·√3 = √6', () =>

Callers 1

simplify.test.tsFile · 0.70

Calls 3

simplifyMethod · 0.65
parseMethod · 0.65
isSameMethod · 0.65

Tested by

no test coverage detected