Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Redundant brackets in exponents and sagetex

If I ask sage for example:

simplify(x^(2-5))

it returns

x^(-3)

This makes sense on the command line, but when I use sagetex to include it to my latex document, it does the same and also typesets it in like $x^{(-3)}$ and not as $x^{-3}$'. Is there any way to change this?

Redundant brackets in exponents and sagetex

If I ask sage for example:

simplify(x^(2-5))

it returns

x^(-3)

This makes sense on the command line, but when I use sagetex to include it to my latex document, it does the same and also typesets it in like $x^{(-3)}$ and not as $x^{-3}$'. $x^{-3}$. Is there any way to change this?

Redundant brackets in exponents and sagetex

If I ask sage for example: do

simplify(x^(2-5))
$\sage{1/exp(x)}$

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

x^(-3)

This makes sense on By the command line, but when I use way: Is it possible to make sagetex to include it to my latex document, it does typeset the same and also typesets it in like $x^{(-3)}$ and not Euler Number automatically as $x^{-3}$. Is there any way to change this?$\mathrm{e}$ instead of $e$?