Question
What is the most effective way to approximate $\pi$. There are many a way that we can approximate $\pi$. The way I am looking for the most effective approximation of $\pi$ is via the equations in forms of products or sums. This means that there will be an exclusion of the complex realm as you would have to approximate $e$ first as well as the $cos(x)$ and $sin(x)$ functions due to the involvement of $e$.
So far I am currently aware of 2 methods of the approximation of $\pi$ being. $${{\pi}\over{2}} = \prod_{n=1}^{\infty}{{4n^2}\over{4n^2-1}}$$
$${\pi^2\over 6}={\zeta (2)}=\sum_{n=1}^{\infty}{1\over n^2}$$
I have been able to calculate that the first product method is more accurate as when you apply a variable to the $\infty$ of both you are able to see that the product method approaches $\pi$ at a faster rate.
I am more so interested in what other methods there are of the approximation of forumlae of $\pi$ and I do not require anyone to make the calculations of which is more accurate. If anyone has any ideas, please leave them down below. Thank you.
The most accurate way to approximate a real number by a fraction with small denominator is its continued fraction decomposition.
Given a real number $\alpha \in \mathbb R$, we compute $a_0 := \lfloor \alpha \rfloor$ and $x_0 = \alpha$, and once $a_0, \ldots, a_k$ and $x_0, \ldots, x_k$ are computed, we set $$ x_{k+1} := \frac{1}{x_k - a_k}, ~~~~~~~~~~~~~~~~~~ a_{k+1} := \lfloor x_{k+1} \rfloor $$ so that we obtain inductively $$ x = a_0 + \frac{1}{a_1 + \frac{1}{{a_2 + \ddots}\atop{~~~~~~~~~~~~~~~~~~~a_k +\frac{1}{x_{k+1}}}}}, $$ that is, $$ x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + \ddots}}}. $$ Each truncated so-called partial fraction is closest to the given real number among all fractions that have denominator less than or equal to it. By expanding the partial fraction, one obtains a series, which converges rapidly to the number one wants to approximate.
Unfortunately, the partial fraction decomposition of $\pi$ doesn't have an obvious pattern. If there were one, one would obtain a method of rapidly approximating $\pi$.