\[\cos z=\cos x\cosh y-\mathrm{i}\sin x\sinh y,\]