| 1 | initial version |
There are different simplify functions. Try this:
sage: var('a b')
(a, b)
sage: f = ((a + b)^2 - a^2 - 2*a*b - b^2)
sage: f.simplify() # as you had
(a + b)^2 - a^2 - 2*a*b - b^2
sage: f.simplify_full()
0
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.