Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is not an answer, but just diagnosing.

sage: a = e^(3*x)
sage: b = 2^(3*x)
sage: a.operands()
sage: b.operands()
[2, 3*x]
sage: a.operator()
sage: b.operator()
<built-in function pow>

We treat the exponential function differently, because it's considered a function in that sense. Since there are no extra operands, our LaTeX method senses the need for parentheses. This would have to be fixed at the Pynac level, if one were to consider it a bug.