P=d^2\left (\frac{1}{2}+\sum_{n=0}^{\infty}\frac{\left(-1\right)^n}{4n^2+8n+3}\right )