#NEWLINE# def separate( self ) : #NEWLINE# #INDENT# "\n        The constituents of this vector in different coordinate systems,\n        as per its definition.\n\n        Returns a dict mapping each CoordSysCartesian to the corresponding\n        constituent Vector.\n\n        Examples\n        ========\n\n        >>> from sympy.vector import CoordSysCartesian\n        >>> R1 = CoordSysCartesian('R1')\n        >>> R2 = CoordSysCartesian('R2')\n        >>> v = R1.i + R2.i\n        >>> v.separate() == {R1: R1.i, R2: R2.i}\n        True\n\n        " #NEWLINE# parts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( vect , measure ) in self . components . items ( ) : #NEWLINE# #INDENT# parts [ vect . system ] = ( parts . get ( vect . system , Vector . zero ) + ( parts * measure ) ) #NEWLINE# #UNINDENT# return parts