Gauss–Legendre algorithm: Difference between revisions

Content deleted Content added
m Reverted 1 edit by Cyberini (talk) to last revision by MrOllie (TW)
Fpacifica (talk | contribs)
m Algorithm: Insert blank lines between equations in step 2 to prevent the formulas running together.
Line 10:
2. Repeat the following instructions until the difference of <math>a_n</math> and <math>b_n</math> is within the desired accuracy:
:<math> \begin{align} a_{n+1} & = \frac{a_n + b_n}{2}, \\
\\
b_{n+1} & = \sqrt{a_n b_n}, \\
\\
t_{n+1} & = t_n - p_n(a_{n}-a_{n+1})^2, \\
\\
p_{n+1} & = 2p_n.
\\
\end{align}
</math>