# Generated by tools/algo/legacy.py from the corpus: do not edit. # The gcd of posts/2026-09-25-the-error-follows-the-condition-number.viv. # Element comparisons are routed through lib/algo/legacy/order.viv; nothing else changes. import algo.legacy.order # from posts/2026-09-25-the-error-follows-the-condition-number.viv: gcd #| The greatest common divisor of two whole numbers, by Euclid. def gcd(a, b) { x = a y = b while y > 0.0 { r = x % y x = y y = r } return x }