ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 27 Nov 2016 13:47:22 +0100How to get latex expression in exponential notation?https://ask.sagemath.org/question/35753/how-to-get-latex-expression-in-exponential-notation/I need a latex representation of equations in exponential notation, e.g. units of J/K should be represented as:
J K^{-1}
Is there a way to force sage to return such a result? Here is an example:
var('J K ')
unit1 = J/K
latex(unit1)
returns:
\frac{J}{K}
I tried expand(), but it does not seem to expand fractions to their exponential representation.stanSun, 27 Nov 2016 13:47:22 +0100https://ask.sagemath.org/question/35753/