Real part

def real(self):
        """Real part"""
        if hasattr(self.val, 'real'):
            return self.val.real
        else:
            # SymPy
            return self.val.as_real_imag()[0]