# Redundant brackets in exponents and sagetex

If I do

$\sage{1/exp(x)}$


in sagetex, it typeset's it as $e^{(-x)}$ instead of $e^{-x}$. How to fix this?

By the way: Is it possible to make sagetex to typeset the Euler Number automatically as $\mathrm{e}$ instead of $e$?

edit retag close merge delete

Can you provide an example? When I do $x^{2-5} = \sage{x^(2-5)}$, it prints it as \frac{1}{x^{3}}.

( 2015-01-03 17:40:55 +0200 )edit

@John Palmieri Indeed I have choosen the wrong minimal example. See my updated question above.

( 2015-01-03 23:11:19 +0200 )edit