Jump to content

Arithmetic-geometric mean/Calculate Pi: Difference between revisions

→‎{{header|Raku}}: back to previous guess, as the new one did not scale well
(→‎{{header|Raku}}: better guess for square root)
(→‎{{header|Raku}}: back to previous guess, as the new one did not scale well)
Line 1,401:
 
multi sqrt(Int $n) {
( exp10**($n.log/chars div 2).Int, { ($_ + $n div $_) div 2 } ... * == *).tail
}
 
1,934

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.