Handle complex numbers