[bugfix] exact-integer-sqrt was broken

This commit is contained in:
Yuichi Nishiwaki 2013-12-10 08:30:20 -08:00
parent acd70f108d
commit 11c0d78957
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@
(import (scheme inexact))
(define (exact-integer-sqrt k)
(let ((n (exact (sqrt k))))
(let ((n (exact (floor (sqrt k)))))
(values n (- k (square n)))))
(define (gcd n m)