Ask Your Question
2

How to remove \left( \right)

asked 2012-03-07 05:30:06 +0100

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
1

answered 2012-03-07 13:11:46 +0100

kcrisman gravatar image

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.

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

Stats

Asked: 2012-03-07 05:30:06 +0100

Seen: 377 times

Last updated: Mar 07 '12