(self, *types)
return result
Returns the atoms that form the current object.

        Examples
        ========

        >>> from sympy.abc import x, y
        >>> from sympy.matrices import Matrix
        >>> Matrix([[x]])
        Matrix([[x]])
        >>> _.atoms()
        set([x])
Returns the atoms that form the current object.
Returns the atoms that form the current object .
def atoms(self, *types):
        """Returns the atoms that form the current object.

        Examples
        ========

        >>> from sympy.abc import x, y
        >>> from sympy.matrices import Matrix
        >>> Matrix([[x]])
        Matrix([[x]])
        >>> _.atoms()
        set([x])
        """

        if types:
            types = tuple(
                [t if isinstance(t, type) else type(t) for t in types])
        else:
            types = (Atom,)
        result = set()
        for i in self:
            result.update( i.atoms(*types) )
        return result
def atoms ( self , * types ) : if types : types = tuple ( [ t if isinstance ( t , type ) else type ( t ) for t in types ] ) else : types = ( Atom , ) result = set ( ) for i in self : result . update ( i . atoms ( * types ) ) return result