For that particular example, all the zero of the function are real since for real x,y we have
[tex]\cos (x+iy) = \cos (x) \mbox{cosh} (y) - i\sin (x) \mbox{sinh} (y)[/tex]
so that upon setting [tex]\cos (x+iy) = 0[/tex] and equating the real and imaginary parts we require that the system of equations
[tex]\cos (x) \mbox{cosh} (y)=0, \, \, \sin (x) \mbox{sinh} (y)=0[/tex]
hold. The second of these equations is zero if and only if either y=0 or [tex]x=k\pi, k=0, \pm 1, \pm 2,\ldots ,[/tex] and the first equation cannot equal zero if [tex]x=k\pi, k=0, \pm 1, \pm 2,\ldots ,[/tex] so we must require that y=0 in order to satisfy the second equation and also require that [tex]\cos (x) =0[/tex] to make the first equation hold. Hence the only values of z such that [tex]\cos (z)=0[/tex] are [tex]z=\frac{\pi}{2}+k\pi, k=0, \pm 1, \pm 2,\ldots .[/tex]