To answer my own question, I think I found the tests:
https://github.com/sympy/sympy/blob/master/sympy/parsing/tests/test_latex.py
https://github.com/sympy/sympy/blob/master/sympy/parsing/tests/test_sympy_parser.py
On Sunday, May 24, 2020 at 3:01:09 AM UTC-4, Ben wrote:
>
> Hello,
>
> I'm using S
It would be great to have improvements to the LaTeX parser. Let us
know if you have any issues opening a pull request.
The test_latex.py file is correct. test_sympy_parser.py has tests for
the Python parser, which isn't related to the LaTeX parser as far as I
know.
Aaron Meurer
On Sun, May 24,
In the process of working on handling spaces in latex, I had two
realizations. First, spaces in Latex math could mean "multiply two
variables" or it could just be a way of managing layout of the expression.
(I posted examples in https://github.com/sympy/sympy/issues/19075).
My second realizat
On 25/05/2020 22:36, Ben wrote:
In the process of working on handling spaces in latex, I had two
realizations. First, spaces in Latex math could mean "multiply two
variables" or it could just be a way of managing layout of the
expression. (I posted examples in
https://github.com/sympy/sympy/is
>
>
> Hi Ben,
>
> I don't want to discourage you in any way, and I may be naive, but I'd
> have thought LaTex would always be ambiguous one way or another -
> particularly if it is hand written. I'd have thought the best solution in
> the long term would be if people wrote their equations in Sy
On 25/05/2020 23:42, Ben wrote:
You're totally correct -- Latex is ambiguous. I don't find your
observation discouraging since it is perfectly reasonable.
The issue I'm interested in tackling is the conversion of math
presented in Physics papers (e.g., .tex files on arxiv.org) to a
On Tuesday, May 26, 2020 at 7:23:42 AM UTC-4, David Bailey wrote:
>
> On 25/05/2020 23:42, Ben wrote:
>
> You're totally correct -- Latex is ambiguous. I don't find your
>> observation discouraging since it is perfectly reasonable.
>>
>
> The issue I'm interested in tackling is the conversion
Parsing a LaTeX expression should ideally return candidate SymPy
expressions with a matching probability. In case of unambiguous matching,
only one expression should have a high matching probability. In case of
ambiguous matching, two or more SymPy expressions should have high
probability.
Top