def _print_hat(_self, expr):
 return ('\\hat{%s}' % str(expr.args[0]).lower())

def _print_hat ( _self , expr ) : return ( '\\hat{%s}' % str ( expr . args [ 0 ] ) . lower ( ) )
print statement used for latexprinter .