cosz=2
cos(x+iy)=cosxcoshy-isinxsinhy=2 so cosxcoshy=2 (1) and -sinxsinhy=0 and x=n pi but from (1) cosh is positive so cos is positve and x=2npi and from (2) y=cosh^-1(-2)
sinz=2i so sinxcoshy+icosxsinhy=2i so sinxcoshy=0 cosxsinhy=2 (2)
from 1st equationx=npi and from second sinhy=2/cos(n pi) so y =sinh^-1(2/cos(n pi))