How to determine equality of symbolic expressions?
I expect the following code to yield True, but instead it is False:
var('x, y, n')
assume(n,'integer')
assume(n >= 0)
bool((x-y)^n==(-1)^n*(y-x)^n)
Is there anything I can do to enable the equality to be recognized?
Looks like a bug, please report at https://github.com/sagemath/sage/issues
Thanks! It has now been reported.