How to remove \left( \right)
latex(2^(3*x)) gives 2^{3\, x} this is fine, but
latex(e^(3*x)) gives e^{\left(3\, x \right)}.
How can i change this behaviour?
Thanks for help
latex(2^(3*x)) gives 2^{3\, x} this is fine, but
latex(e^(3*x)) gives e^{\left(3\, x \right)}.
How can i change this behaviour?
Thanks for help
This is not an answer, but just diagnosing.
sage: a = e^(3*x)
sage: b = 2^(3*x)
sage: a.operands()
[3*x]
sage: b.operands()
[2, 3*x]
sage: a.operator()
exp
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.
Asked: 13 years ago
Seen: 394 times
Last updated: Mar 07 '12