Ask Your Question

# Revision history [back]

I was looking for the same thing and found these comments of the issue.

This works with a _few_ functions, but not all.

• http://ask.sagemath.org/question/7577/prevent-sage-from-simplifying/

This is probably the best answer on why it does this simplification (and why there's no way to stop it)

• https://groups.google.com/forum/#!topic/sage-support/bPL5PDesza8

As far as the simplification mechanisms, you can look at this page. There are a number of them spread throughout that highlight different means:

• http://www.sagemath.org/doc/reference/calculus/sage/symbolic/expression.html

If you're looking to just reproduce the same text as your input, unfortunately I have found no better way than writing it out in LaTeX as a initial condition step so Sage doesn't mangle the form. This is a quick latex renderer that I modified from a this post on ask.sagemath

def latexrender(s):
try:
pic = text("$" + s.replace('$','\$') + "$",(0,0),axes=False,figsize=1,color='black',fontsize=20)
pic.show()
except:
latexrender(latex(s))
return


I was looking for the same thing and found these comments of on the issue.

This works with a _few_ functions, but not all.

• http://ask.sagemath.org/question/7577/prevent-sage-from-simplifying/

This is probably the best answer on why it does this simplification (and why there's no way to stop it)

• https://groups.google.com/forum/#!topic/sage-support/bPL5PDesza8

As far as the simplification mechanisms, you can look at this page. There are a number of them spread throughout that highlight different means:

• http://www.sagemath.org/doc/reference/calculus/sage/symbolic/expression.html

If you're looking to just reproduce the same text as your input, unfortunately I have found no better way than writing it out in LaTeX as a initial condition step so Sage doesn't mangle the form. This is a quick latex renderer that I modified from a this post on ask.sagemath

def latexrender(s):
try:
pic = text("$" + s.replace('$','\$') + "$",(0,0),axes=False,figsize=1,color='black',fontsize=20)
pic.show()
except:
latexrender(latex(s))
return