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, 26 Nov 2012 14:31:56 +0100Substituting numerical values without partial evaluation.https://ask.sagemath.org/question/9565/substituting-numerical-values-without-partial-evaluation/Given an expression of the form:
<pre>
var('x y')
e = x*y + 1
</pre>
I would like to be able to substitute numerical values into an expression without it being simplified. I'm not too concerned about seeing it in the notebook, but I would like the latex display to be affected. In other words, I would like the equivalent of:
<pre>
latex(e(x=5,y=6)) => "5 \times 6 + 1"
</pre>
Any hope of doing this? I could substitute into the text of the latex, but then I
would get "5 6 + 1".nholtzMon, 26 Nov 2012 14:31:56 +0100https://ask.sagemath.org/question/9565/