aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/intfact.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/intfact.spad.pamphlet')
-rw-r--r--src/algebra/intfact.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/intfact.spad.pamphlet b/src/algebra/intfact.spad.pamphlet
index 996b9232..316da86a 100644
--- a/src/algebra/intfact.spad.pamphlet
+++ b/src/algebra/intfact.spad.pamphlet
@@ -330,7 +330,7 @@ IntegerRoots(I:IntegerNumberSystem): Exports == Implementation where
return ((1 + s + a quo s) quo two)
-- initial approximation for the root is within a factor of 2
(new, old) := (shift(1, n quo two), 1)
- while new ^= old repeat
+ while new ~= old repeat
(new, old) := ((1 + new + a quo new) quo two, new)
new