The following works perfectly in sage
sage: x, y = var('x y')
sage: f = function('f')
sage: f(x+x+y)
f(2*x + y)
sage: f(x+x+y) + f(y)
f(2*x + y) + f(y)
Now I want to know whether symbolic callable Boolean functions can be created
in sage which will exhibit the following characteristics:
x,y -----> symbolic boolean variables
f -------> symbolic Boolean function
f(x+x+y) + f(y) results in 0. [x+x=0, f(x+x+y) + f(y) should become f(y) + f(y)
which in turn should equate to 0]
2*f(x) results in 0.
3*f(x) results in f(x).
........
and so on.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.