dn(z,k)=dn2(z/(1+k1),k1)-(1-k1)1+k1-dn2(z/(1+k1),k1).