summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-14 10:51:06 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-14 10:51:06 -0500
commit58fe25a643a9bbbcc0d4e68e5a59f69acc0cef69 (patch)
tree4e627a8e555c9c04c6bb91a80cd457a26809e31a /lib
parente7d6b059fc68154dde96cafeac10f3c5265df115 (diff)
lib: `BigCubeRoot`: fix comment
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 69ddc17..451bb9b 100644
--- a/lib/cbrt.go
+++ b/lib/cbrt.go
@@ -23,7 +23,7 @@ func BigCubeRoot(a *big.Float) *big.Float {
e = e.Mul(x, x)
e = e.Mul(e, x)
- // x^2 - a
+ // x^3 - a
z := big.NewFloat(0).Sub(e, a)
return z