Let $\sqrt{6\sum_{k=1}^\infty{\frac{1}{k^2}}}$ be Euler's approximation of $\pi$; $\lim_{n\rightarrow\infty}\frac{2}{g_n}$ Gauss approximation of $\pi$; and $2\cdot\frac{2}{\sqrt{2}}\cdot\frac{2}{\sqrt{2+\sqrt{2}}}\cdot\frac{2}{\sqrt{2+\sqrt{2+\sqrt{2}}}}...$ Viète's approximation of $\pi$ where:
- $\{g_n\}_{n=1}^\infty$ is the succession given by:
$1$ for $n=1$;
$1/2$ for $n=2$;
$\sqrt{g_n-2g_{n-1}}$ for $n>2$ odd;
$\frac{g_{n-2}+g_{n-1}}{2}$ for $n>2$ even;
- $\{v_n\}_{n=1}^\infty$ is the succession given by:
$a_1=\sqrt{2}$;
$a_n=\sqrt{2+a_{n-1}}$;
$V_1= 2\cdot\frac{2}{\sqrt{2}}$;
$V_n=V_{n-1}\cdot\frac{2}{a_n}$
How to calculate $\lim_{n\rightarrow\infty}\frac{\lvert\pi_{n+1}^E-\pi_n^E\rvert}{\lvert\pi_{n}^E-\pi_{n-1}^E\rvert}$, $\lim_{n\rightarrow\infty}\frac{\lvert\pi_{n+1}^G-\pi_n^G\rvert}{\lvert\pi_{n}^G-\pi_{n-1}^G\rvert}$ and $\lim_{n\rightarrow\infty}\frac{\lvert\pi_{n+1}^V-\pi_n^V\rvert}{\lvert\pi_{n}^V-\pi_{n-1}^V\rvert}$ where $\pi_n^E, \pi_n^G, \pi_n^V$ are, respectively, Euler's, Gauss' and Viète's approximations of $\pi$?
I have a MATLAB code that calculates this ratios ($1$ for Euler's, $0.5$ Gauss' and $0.25$ for Viète's) but I wonder how would it be done "by hand", and which methods do we have to solve those limits.
I'd suggest not "by hand" but using some simple programming language (an interpreter language will do, so you do not need to compile your routine before running it). It should offer trace options or simple output to a cmd window (console). Myself I use REXX (I am a mainframe dinosaur). I am not up to date what else is a better option nowadays.
With it you may program the algorithm and observe how by each iteration the result gets closer to the expected value, and how many digits will be certain by each loop. Vieta is know to be quite slow. But (!) usually the progress per loop is indicated what is only half of the story: how much drudgery (or effort) is executed within one single loop? If we regard the procedures to get digits of $\pi$ as kind of a root finder maybe the Ostrowski index is a more meaningful performance indicator since it also takes into acount how much is investigated in every iteration.
Some time ago I tested several procedures to get many digits of $\pi$. I attach a REXX program I used -- if it looks too complicated then just take the single sections to get an idea how to program the algorithms in question.
BTW, following program includes also two fast algorithms, Brent-Salamin and Borwein&Borwein, just for fun.
The program by itself is not of much help, thus I show an output of a sample run. Input is number of digits to compute, output per procedure is i) last 33 digits of $\pi$, ii) time elapsed in seconds, iii) number of iterations, iv) type of procedure. Note that for example "Newton" takes about twice as many loops than "Vieta" but is anyway a little bit faster. That is why I suggest to use the Ostrowski index.