doc-src/Tutorial/Recdef/gcd
author nipkow
Thu, 06 Jul 2000 09:46:56 +0200
changeset 9255 2ceb11a2e190
parent 6100 40d66bc3e83f
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9255
2ceb11a2e190 *** empty log message ***
nipkow
parents: 6100
diff changeset
     1
recdef gcd "measure (%(m,n).n)"
6100
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     2
  simpset "simpset() addsimps [mod_less_divisor]"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     3
  "gcd (m, n) = (if n=0 then m else gcd(n, m mod n))"