Samuel,
I am the personification of preoccupations upon preoccupations. No problem.
My meager attempt lead me to pynac as well, though not into the library
itself. I do know C++, so maybe I can make some progress there.
I cloned pynac. There are some dependencies to work out to get it to
build.
Andy,
three weeks ago, after the partial exploration discussed on this list,
I switched to other preoccupations and forgot to get back to this.
To recap and go a little further, here is how I would describe
the issue and some steps to explore it:
Current:
sage: h = e^-x
sage: latex(h)
Note that even though you stumbled upon this issue using `desolve`,
a minimal example does not have to involve `desolve`.
If you open a ticket for this, start from a minimal example. For instance:
```
sage: h = e^-x
sage: h._latex_()
'e^{\\left(-x\\right)}'
sage: latex(h)
e^{\left(-x\right)}
```
Andy,
The code you are looking for is at line 891 in
src/sage/symbolic/expression.pyx
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/expression.pyx#L891
https://github.com/sagemath/sage/blob/master/src/sage/symbolic/expression.pyx#L891
Here is how I found out. Define:
```
sa
Vincent,
I'm not expecting perfection :) It seems like a problem I might be able
to fix with a little direction. I did look though the code,but didn't
make much progress.
I know I have run under the debugger before, but for the life of me I
can remember how I did it. If I could figure out how to
Dear Andy,
Thanks for your report.
Note that this result is not wrong with the extra parenthesis. Perhaps
a bit annoying.
SageMath is developed by volunteers and not perfect. You are very
welcome to contribute to its enhancement
http://doc.sagemath.org/html/en/developer/
Best
Vincent
Le 0