-;;;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+;;;; Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
;;;;
-;;;; This program is free software; you can redistribute it and/or modify
-;;;; it under the terms of the GNU General Public License version 2 as
-;;;; published by the Free Software Foundation; see file GNU-GPL.
-;;;;
-;;;; This program is distributed in the hope that it will be useful,
+;;;; This library is free software; you can redistribute it and/or
+;;;; modify it under the terms of the GNU Lesser General Public
+;;;; License as published by the Free Software Foundation; either
+;;;; version 3 of the License, or (at your option) any later version.
+;;;;
+;;;; This library is distributed in the hope that it will be useful,
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;;;; GNU General Public License for more details.
-;;;;
-;;;; You should have received a copy of the GNU General Public License
-;;;; along with this program; if not, write to the Free Software Foundation,
-;;;; Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;;; Lesser General Public License for more details.
+;;;;
+;;;; You should have received a copy of the GNU Lesser General Public
+;;;; License along with this library; if not, write to the Free Software
+;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;;;; Based in part on code from GNU CLISP, Copyright (C) 1993 Michael Stoll
(testeqv (inexact->exact (exact->inexact 2135445/16777216)) 2135445/16777216)
(testeq (< (- (exact->inexact 10197734562406803221/17452826108659293487)
.584302765576009) .0000001) #t)
- (testeqv (rationalize #e0.76 1/10) 3/4)
+ (testeqv (rationalize #e0.76 1/10) 2/3)
(testeqv (rationalize #e0.723 1/10) 2/3)
(testeqv (rationalize #e0.723 1/100) 5/7)
(testeqv (rationalize #e-0.723 1/100) -5/7)
(test= (- 0+6i 1/4 0.5 7) -7.75+6.0i)
(testeqv (rationalize #e2.5 1/1000) 5/2)
(testeqv (rationalize 7/3 1/1000) 7/3)
- (testeqv (rationalize #e3.14159265 1/10) 22/7)
+ (testeqv (rationalize #e3.14159265 1/10) 16/5)
(testeqv (numerator (/ 8 -6)) -4)
(testeqv (denominator (/ 8 -6)) 3)
(testeqv (gcd (numerator 7/9) (denominator 7/9)) 1)