瀏覽代碼

Add code for euclid's algo

Lily Carpenter 9 年之前
父節點
當前提交
15d2ed6fbc
共有 2 個文件被更改,包括 28 次插入0 次删除
  1. 27 0
      chapter-1/euclid.lisp
  2. 1 0
      chapter-1/notes.org

文件差異過大導致無法顯示
+ 27 - 0
chapter-1/euclid.lisp


+ 1 - 0
chapter-1/notes.org

@@ -1,4 +1,5 @@
1 1
 * Euclid's algorithm (Page 2-9)
2
+** Calculates the greatest common divisor of two numbers.
2 3
 ** Definition
3 4
 *** E0. [Ensure m >= n.] If m < n, exchange m <-> n.
4 5
 *** E1. [Find remainder.] Divide m by n and let r be the remainder.