From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: ratio implementation Date: Mon, 28 Jul 2003 14:08:38 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <16165.4678.338504.846345@localhost.localdomain> References: <3F250809.9030108@ccrma.stanford.edu> Reply-To: hanwen@cs.uu.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059394544 20716 80.91.224.249 (28 Jul 2003 12:15:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Jul 2003 12:15:44 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jul 28 14:15:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19h6uZ-0005NW-00 for ; Mon, 28 Jul 2003 14:15:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19h6oc-0003ZL-N7 for guile-devel@m.gmane.org; Mon, 28 Jul 2003 08:09:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19h6oM-0003Y2-2B for guile-devel@gnu.org; Mon, 28 Jul 2003 08:09:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19h6oK-0003X7-Eb for guile-devel@gnu.org; Mon, 28 Jul 2003 08:09:05 -0400 Original-Received: from smtpzilla1.xs4all.nl ([194.109.127.137]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19h6nw-0003MI-AT for guile-devel@gnu.org; Mon, 28 Jul 2003 08:08:40 -0400 Original-Received: from localhost.localdomain.xs4all.nl (byrd.xs4all.nl [213.84.26.127]) by smtpzilla1.xs4all.nl (8.12.9/8.12.9) with ESMTP id h6SC8aPH072093; Mon, 28 Jul 2003 14:08:36 +0200 (CEST) Original-To: Bill Schottstaedt In-Reply-To: <3F250809.9030108@ccrma.stanford.edu> X-Mailer: VM 7.14 under Emacs 21.2.1 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:2660 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2660 bil@ccrma.Stanford.EDU writes: > There is an implementation of ratios for Guile (based on CVS version > of 27-Jul-03) at ccrma-ftp.stanford.edu:/pub/Lisp/gratio.tar.gz. > Rather than send a huge diff, I placed the new versions of the changed > files (all from the libguile directory) in the tarball along with > *.diff showing the changes. I added numerator, denominator, > rationalize and ratio?, and at the C level scm_make_ratio and > scm_i_ratio2real (should it be scm_ratio2dbl?). "ratio?" is needed > because "rational?" returns #t if passed a real -- there has to be > some way to distiguish a ratio from a real. An alternative would be to > make "rational?" rational. > > I don't know how the FSF/GPL copyright stuff works, but I did this > work on my own time, did not look at any other implementation, and > hereby donate the code to you. I'd be happy to "sign the papers". Cool! (If that goes through, then we can scrap our own support for Rational numbers in LilyPond!) -- Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel