From dae4bb44dd901ffe8ac8db1fa7aa632cf8688928 Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sun, 20 Nov 2022 16:06:28 -0500 Subject: lib: update `BigCubeRoot` Increase the number of iterations to 1000000. --- lib/cbrt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cbrt.go b/lib/cbrt.go index df82c6e..6a856a3 100644 --- a/lib/cbrt.go +++ b/lib/cbrt.go @@ -42,7 +42,7 @@ func BigCubeRoot(a *big.Float) *big.Float { } x0 := a // Initial guess. - for i := 0; i < 1000; i++ { + for i := 0; i < 1000000; i++ { // f(x0) / f'(x0) d := fx(x0) d = d.Quo(d, fxPrime(x0)) -- cgit v1.2.3