Closed rs-mobitech closed 1 year ago
For reference, here's the Latex also
mfSLatex:\frac{1}{2}(\sin(1)\cos(1))
I believe the latex is correct but the mfSLatex and mfELatex are both incorrect and missing a ")" from the end
One more example
What happens if you do mf3.setValue("\\frac{1}{2}(\\sin(1)\\cos(1))")
?
(Note: I suspect this issue has nothing to do with simplify but that there is a clipping issue with the CSS customizing the mathfield))
Here's what happens:
Then I also added a few 1s before the \\frac and it gives me this:
There is a lot of space and I have seen some much longer strings in that field
Here's another example, where you can see the difference with simplify. In MathLive, it's not able to simplify, but Nerdamer does simplify correctly.
OK, so if you get the same problem when setting the LaTeX value directly, the issue is not related to Simplify.
The issue appears to be in MathLive. Entering (f(x))
will result in the final closing parenthesis not being displayed.
Fixed in MathLive with aaf6a46172bdc4b9e4dac469bb87276c5e3d6d4c
My application has logging code and I noticed what I think is a problem with .simplify(). Here is the code, and below that are results for two expressions. One of the expressions is missing an ending parenthesis: