The documentation for simplify explains:

Expressions always print simplified; a simplified expression is
distinguished because the way it prints agrees with its underlyilng
representation.

sage: x - x
0
sage: type(x - x)
<class 'sage.calculus.calculus.SymbolicArithmetic'>
sage: type(simplify(x - x))
<class 'sage.calculus.calculus.SymbolicConstant'>

So until hit with an explicit simplify command, symbolic expressions
seem retain at least some information about how they were input.  Is
there a way to get the input form of an expression back out?  Can I
ever get sage to print something like

sage: (x - x).some_devious_trick()
x - x

I'm not as interested in trickery involving strings.

If there is a way to do this, or if there could be a way to do this
that wouldn't foul everything up, then extending it to operations like
integrals, derivatives, sums, and products might be an interesting
approach to answering the "how do I do a formal * in Sage?" question.

Regards,

JM

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to