summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-20 16:06:28 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-20 16:06:28 -0500
commitdae4bb44dd901ffe8ac8db1fa7aa632cf8688928 (patch)
tree59746a6c4e17411b15a8e33d75661a1c74b4655d /lib
parentb433086ab4e3d73b12f34b556323ee4c8fab293f (diff)
lib: update `BigCubeRoot`
Increase the number of iterations to 1000000.
Diffstat (limited to 'lib')
-rw-r--r--lib/cbrt.go2
1 files changed, 1 insertions, 1 deletions
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))