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