#NEWLINE# def diff( self , * args , **kwargs ) : #NEWLINE# #INDENT# "\n        Implements the SymPy diff routine, for vectors.\n\n        diff's documentation\n        ========================\n\n        " #NEWLINE# for x in args : #NEWLINE# #INDENT# if isinstance ( x , BasisDependent ) : #NEWLINE# #INDENT# raise TypeError ( 'Invalid arg for differentiation' ) #NEWLINE# #UNINDENT# #UNINDENT# diff_components = [ ( df ( v , * args , ** kwargs ) * x ) for ( k , v ) in self . components . items ( ) ] #NEWLINE# return self . _add_func ( * diff_components )