def test_division(): x, y, z = symbols('x','y','z') v = Matrix(1,2,[x, y]) assert v.__div__(z) == Matrix(1,2,[x/z, y/z]) assert v.__truediv__(z) == Matrix(1,2,[x/z, y/z]) assert v/z == Matrix(1,2,[x/z, y/z])
def test_division(): x, y, z = symbols('x', 'y', 'z') v = Matrix(1, 2, [x, y]) assert v.__div__(z) == Matrix(1, 2, [x / z, y / z]) assert v.__truediv__(z) == Matrix(1, 2, [x / z, y / z]) assert v / z == Matrix(1, 2, [x / z, y / z])