\[\operatorname{dn}\left(z,k\right)=\frac{\pi}{2K}+\frac{2\pi}{K}\sum_{n=1}^{%
\infty}\frac{q^{n}\cos\left(2n\zeta\right)}{1+q^{2n}}.\]