If you simplify something like x/x it results in 1, but it would be nice if there were a way to make it somehow say 1 iff x is not 0.
A more serious example: I would like to row reduce a matrix with symbols in one column, and see what values of the symbols make one of the entries zero. Here is my code and the output:
g, h, k = symbols('g h k')
A = Matrix([[1,-4,7,g],[0,3,-5,h],[-2,5,-9,k]])
A.rref()
which results in | Matrix | (((1 0 1/3 0) (0 1 -5/3 0) (0 0 0 1))) | (0 1 3) | but the 1 in the bottom right entry is really the result of simplifying (2g+h+k)/(2g+h+k), which I only know because I did it by hand. I would like it to somehow tell me that this only works if (2g+h+k) is not zero.