In the center of Borwein's Algorithm from 1985 occurs a term $$T_n = 1-\sqrt[4]{1-y_n^4}$$ with $y_n \to 0_+$. For small $y_n$ you need 4 times the precision of result $T_n$ due to cancellation. With the decomposition $$\sqrt[4]{1-y_n^4} = \sqrt[4]{1-y_n^2}\sqrt[4]{1+y_n^2}$$ you still loose half of the precision! A further complex decomposition of the latter radicand would remain quadratic.
On the other hand, regarding the Taylor series, $T_n$ is quite flat, $O(y_n^4)$, and there is a fast linear convergent evaluation without loss.
Question: Is there a numerically stable evaluation algorithm for $T_n$ with at least quadratic convergence, e.g. similar to what we have for the quartic root
$$r_{\infty}=\sqrt[4]{x}: \ r_{n+1} = r_n \cdot \{\frac{5}{4} - \frac{r_n^4}{4x}\} $$
?
T = y4 / (((w4 * w2 + w2) + w4) + 1). – njuffa Sep 06 '22 at 11:52