ソースを参照

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

File diff suppressed because it is too large
+ 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.