Hi Everyone:
I'm having trouble converting a latex expression to sympy using the lark based parsing:
import sympy.parsing.latex as spl
ex = r"a^2 b"
print(spl.parse_latex_lark(ex))
throws an exception:
lark.exceptions.UnexpectedCharacters: No terminal matches 'b' in the current parser context, at line 1 col 5
Python version 3.10.18
sympy version 1.14.0
Any suggestions? Should I expect this to work?
Thanks! --- Jim.