#NEWLINE# def _eval_rewrite_as_Heaviside( self , * args ) : #NEWLINE# #INDENT# from sympy import Heaviside #NEWLINE# return Add ( * [ ( j * Mul ( * [ Heaviside ( ( i - j ) ) for i in args if ( i != j ) ] ) ) for j in args ] )