From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: ratio implementation Date: Wed, 15 Oct 2003 09:01:02 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87n0c3zaoh.fsf@zip.com.au> References: <3F250809.9030108@ccrma.stanford.edu> <87smmyibk7.fsf@zagadka.ping.de> <3F6637EC.7010004@dirk-herrmanns-seiten.de> <3F66F68B.3070100@ccrma.stanford.edu> <3F6A1F1A.8000507@dirk-herrmanns-seiten.de> <87pth9cbmt.fsf@zagadka.ping.de> <3F8A853D.1020708@ccrma> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066173893 17422 80.91.224.253 (14 Oct 2003 23:24:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2003 23:24:53 +0000 (UTC) Cc: guile-devel@gnu.org, Marius Vollmer Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 15 01:24:50 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9YX4-0008QV-00 for ; Wed, 15 Oct 2003 01:24:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9YPX-0001hD-2J for guile-devel@m.gmane.org; Tue, 14 Oct 2003 19:17:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9YNb-00011o-6x for guile-devel@gnu.org; Tue, 14 Oct 2003 19:15:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9YCF-0001qx-EX for guile-devel@gnu.org; Tue, 14 Oct 2003 19:03:50 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1A9YCE-0001o7-Oh for guile-devel@gnu.org; Tue, 14 Oct 2003 19:03:18 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by mx20.gnu.org with esmtp (Exim 4.24) id 1A9YAG-0007sy-QL for guile-devel@gnu.org; Tue, 14 Oct 2003 19:01:17 -0400 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id h9EN1CYH024777; Wed, 15 Oct 2003 09:01:12 +1000 Original-Received: from localhost (ppp113.dyn228.pacific.net.au [203.143.228.113]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id h9EMvIst007267; Wed, 15 Oct 2003 08:57:18 +1000 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1A9YA2-0000gU-00; Wed, 15 Oct 2003 09:01:02 +1000 Original-To: Bill Schottstaedt Mail-Copies-To: never In-Reply-To: <3F8A853D.1020708@ccrma> (Bill Schottstaedt's message of "Mon, 13 Oct 2003 03:58:05 -0700") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2875 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2875 Bill Schottstaedt writes: > > "Formally, the function returns an integer equivalent to\n" > "@code{(inexact->exact (floor (* @var{n} (expt 2 @var{cnt}))))}.\n" I think I removed words like that from manual, on the basis that they weren't as clear as they could be. > guile> (ash .1 2) > 0.4 I guess that's only a side effect of using scm_product. It really shouldn't be doing that of course, it ought to be bit shifting not multiplying. No doubt ash could work on flonums in a sensible way, but maybe there's no particular need for that, if other bitwise logical functions (ie. everything under "Bitwise Operations" in the manual) only take integers. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel