We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1d647 commit 46dbafaCopy full SHA for 46dbafa
test/compute-engine/calculus.test.ts
@@ -488,4 +488,12 @@ describe('LIMIT', () => {
488
expect(
489
engine.parse('\\lim_{x \\to 0} \\frac{\\sin(x)}{x}').N().re
490
).toMatchInlineSnapshot(`1`);
491
+
492
+ // Postfix ^ should be part of the limit body, not applied to the Limit
493
+ test('power inside delimited limit body', () => {
494
+ const expr = engine.parse('\\lim_{x\\to 0}\\left(x\\right)^x');
495
+ // Should be Limit(x^x), not Power(Limit(x), x)
496
+ expect(expr.operator).toBe('Limit');
497
+ expect(expr.latex).toMatchInlineSnapshot(`\\lim_{x\\to0}x^{x}`);
498
+ });
499
});
0 commit comments