Relationship between cot and coth

The following formula holds: $$\cot(z)=i\coth(iz),$$ where $\cot$ denotes the cotangent and $\coth$ denotes the hyperbolic cotangent.