@property
    def free_symbols(self):

        return set().union(*[i.free_symbols for i in self])
Returns the free symbols within the matrix.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.free_symbols