(a: string, b: string)
| 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', () => |
no test coverage detected