Gauss-Legendre Algorithm This algorithm is used to calculate 𝜋 π very quickly and it works as follows: