Using the formula
sin(A + B) = sin A cos B + cos A sin B
we have
sin z = sin (x + iy) = sin x cos (iy) + cos x sin (iy)
or
Similarly for cos z.