Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Unable to handle sympy Integral class latex #43

Open
Ritesh17 opened this issue Jun 22, 2018 · 0 comments
Open

Unable to handle sympy Integral class latex #43

Ritesh17 opened this issue Jun 22, 2018 · 0 comments

Comments

@Ritesh17
Copy link

When parsing back the obtained latex on a sympy Integral object to process_sympy(), it throws an exception. Adding code snippet and error log. Occurs on python 2.7 and 3.

The error occurs due to the extra "," being generated and if I add this line
latex_expr = latex_expr.replace("\,", "")
before passing latex_expr back to process_sympy() it seems to be working fine.


from sympy import *
from sympy.abc import *
from process_latex import process_sympy

expr = Integral((x+1)**2, x)
latex_expr = latex(expr)
back_to_expr = process_sympy(latex_expr)


Exception: I don't understand this
\int \left(x + 1\right)^{2}, dx


----

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant