From ec1eee41335c1f6c021f2b5fa3321281bc23cf22 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Sun, 30 Sep 2018 10:04:02 -0500 Subject: [PATCH] [integer-sqrt] add comment to credit 'newton's method' --- specs/casper_sharding_v2.1.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specs/casper_sharding_v2.1.md b/specs/casper_sharding_v2.1.md index 1d7b48954..9d7e1f023 100644 --- a/specs/casper_sharding_v2.1.md +++ b/specs/casper_sharding_v2.1.md @@ -302,6 +302,7 @@ Finally, we define `integer_sqrt` for use in reward/penalty calculations: ```python def integer_sqrt(n): + # Utilizes "Newton's Method" x = n y = (x + 1) // 2 while y < x: