Redundant brackets in exponents and sagetex

asked 2015-01-03 16:40:54 +0100

sagefan gravatar image

updated 2015-01-03 23:10:20 +0100

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 flag offensive close merge delete

Comments

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

John Palmieri gravatar imageJohn Palmieri ( 2015-01-03 17:40:55 +0100 )edit

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

sagefan gravatar imagesagefan ( 2015-01-03 23:11:19 +0100 )edit