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.Mon, 07 Mar 2016 21:12:02 +0100Display symbolic expressions without expansionhttps://ask.sagemath.org/question/32729/display-symbolic-expressions-without-expansion/I'm trying to write symbolic expressions with many intermediate variables. When I use the "show" function to display the final symbolic expression, it always shows the expression with the intermediate variables fully expanded. How can I show the final expression in terms of intermediate variables? Here is a simplified example:
var('t')
cc=matrix(SR, 3, 3, t)
I1=cc.trace()
Q=exp(I1)
show(Q)
With the above code, the output would be
\begin{equation}
Q=e^{3t}
\end{equation}
How can I generate an output as
\begin{equation}
Q=e^{I1}
\end{equation}
LiangMon, 07 Mar 2016 21:12:02 +0100https://ask.sagemath.org/question/32729/