Redundant brackets in exponents and sagetex

asked 2015-01-03 09:40:54 -0500

sagefan gravatar image

updated 2015-01-03 16:10:20 -0500

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 10:40:55 -0500 )edit

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

sagefan gravatar imagesagefan ( 2015-01-03 16:11:19 -0500 )edit