Ask Your Question

How to remove \left( \right)

asked 2012-03-06 22:30:06 -0500

amalea gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-03-07 06:11:46 -0500

kcrisman gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-06 22:30:06 -0500

Seen: 95 times

Last updated: Mar 07 '12