real and imaginary part of cos(z)