From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Anye Li" Newsgroups: gmane.lisp.guile.bugs Subject: rationalize returns inexact results. Date: Thu, 24 Jul 2008 01:15:04 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_752_17215161.1216876504670" X-Trace: ger.gmane.org 1216876530 20933 80.91.229.12 (24 Jul 2008 05:15:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 05:15:30 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jul 24 07:16:20 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KLtBT-0006Da-Vf for guile-bugs@m.gmane.org; Thu, 24 Jul 2008 07:16:12 +0200 Original-Received: from localhost ([127.0.0.1]:49915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLtAZ-00085z-Vs for guile-bugs@m.gmane.org; Thu, 24 Jul 2008 01:15:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLtAS-00084e-WF for bug-guile@gnu.org; Thu, 24 Jul 2008 01:15:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLtAR-00083L-72 for bug-guile@gnu.org; Thu, 24 Jul 2008 01:15:08 -0400 Original-Received: from [199.232.76.173] (port=60530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLtAQ-000833-Ra for bug-guile@gnu.org; Thu, 24 Jul 2008 01:15:06 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.174]:34417) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLtAQ-0007km-UC for bug-guile@gnu.org; Thu, 24 Jul 2008 01:15:07 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so2156513wfc.24 for ; Wed, 23 Jul 2008 22:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=+L/bPMC8Fhz2KjxbQHmbeBVZVXk2Ke/4LgF3aCjIWC8=; b=gefAzTlEVV2xrLZx7W6ocb9Pd+e710sOfkTF/2U/YN77boD/x3iHNNIwOUHexkHzJr yIlxytPECLYIgbnvnYi/1CPxBEUqgxOnPZTjCYFHkZmb3KaWZG3CvgEdk1t77W+0o5iT ht7aQDdU1hMGsOMq/pT+8GLNNNYZxGC0u0ED4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=a8xGRLdLlZaxtkKiKNQ0oo0I6SSzPcYWHI7SFkYj9gp4LZ5MiMaDFVMphtNiMzPmDo 5B0i1t2acgYsyRBYjGMuhKxC4kQGMFy0UweRVf4TKH0htot9WW+O4ERiwjG/C5zwuZ+I 9WcwS7eYhaO0Fsnuoapl0UStrX206CcPxvb9Y= Original-Received: by 10.143.42.3 with SMTP id u3mr263081wfj.148.1216876504675; Wed, 23 Jul 2008 22:15:04 -0700 (PDT) Original-Received: by 10.143.38.4 with HTTP; Wed, 23 Jul 2008 22:15:04 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3945 Archived-At: ------=_Part_752_17215161.1216876504670 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I've noticed that rationalize returns inexact results in Guile 1.8.3 (my apologies if this has already been fixed), e.g. (rationalize 0.333333 0.01) returns 0.333333333333333, which is inexact. This is contrary to the claim made by (help rationalize). Since Guile now supports exact rationals, shouldn't it return an exact result, e.g. 1/3 for the example given above? Thanks, Anye Li ------=_Part_752_17215161.1216876504670 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

I've noticed that rationalize returns inexact results in Guile 1.8.3 (my apologies if this has already been fixed), e.g. (rationalize 0.333333 0.01) returns 0.333333333333333, which is inexact.  This is contrary to the claim made by (help rationalize).  Since Guile now supports exact rationals, shouldn't it return an exact result, e.g. 1/3 for the example given above?

Thanks,

Anye Li
------=_Part_752_17215161.1216876504670--