(latex: string)
| 652 | ); |
| 653 | expect(r.has('x')).toBe(true); |
| 654 | expect(r.isSame(ce.box(['Divide', 1, ['Add', 1, ['Power', 'x', 2]]]))).toBe(true); |
| 655 | }); |
| 656 | |
| 657 | test('SubstFor for the tangent target maps tan → x', () => { |
| 658 | // SubstFor[1, Tan[x], tan³, x] → x³ |
| 659 | const r = build(['SubstFor', 1, ['Tan', 'x'], ['Power', ['Tan', 'x'], 3], 'x'] as Json, ctx); |
| 660 | expect(r.isSame(ce.box(['Power', 'x', 3]))).toBe(true); |
| 661 | }); |
no test coverage detected