ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 18 Dec 2012 15:28:15 -0600Does a subtraction symbolic expression actually exist?http://ask.sagemath.org/question/9398/does-a-subtraction-symbolic-expression-actually-exist/Can someone please give me an example of a symbolic expression in sage of the subtraction variety? (by subtraction variety I mean using the subtraction operator)
Precisely: how can I create an object `o` of type `sage.symbolic.expression.Expression` such that `o.operator()` is `operator.sub`? It seems that subtraction expressions are always converted to additions.
For example:
sage: x = var('x')
sage: (x-1).operator()
<built-in function add>
rmp251Tue, 18 Dec 2012 15:28:15 -0600http://ask.sagemath.org/question/9398/