(theta: Expression)
| 260 | // Regression: the power path used to Euler-expand the square while the |
| 261 | // base stayed exponential. |
| 262 | const sq = engine.expr(['Power', eToTheI('x'), 2]); |
| 263 | expect(sq.toString()).toBe('e^(2i * x)'); |
| 264 | expect(sq.evaluate().toString()).toBe('e^(2i * x)'); |
| 265 | }); |
| 266 | |
| 267 | test('constant angles still reduce', () => { |
| 268 | expect(engine.expr(eToTheI(['Divide', 'Pi', 2])).evaluate().toString()).toBe( |
| 269 | 'i' |
no test coverage detected