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

Reverse SymPy LaTeX printer #11

Open
Upabjojr opened this issue Apr 4, 2016 · 0 comments
Open

Reverse SymPy LaTeX printer #11

Upabjojr opened this issue Apr 4, 2016 · 0 comments

Comments

@Upabjojr
Copy link

Upabjojr commented Apr 4, 2016

SymPy has a LaTeX printer, the function latex( ) returns the LaTeX representation of the string.

It would be good to add tests, to check that latex2sympy is able to parse back generated LaTeX strings to SymPy's original expression.

Given a SymPy expression, let's say expr, test could look like:

from sympy import latex
assert eval(process_latex(latex(expr))) == expr

This could be used to both:

  • detect bugs in SymPy's LaTeX printer.
  • detect bugs in latex2sympy
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