From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Exposing more math functionality Date: Fri, 27 Aug 2010 21:02:26 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282967968 25210 80.91.229.12 (28 Aug 2010 03:59:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 03:59:28 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 28 05:59:26 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OpCZg-0000PF-Va for guile-devel@m.gmane.org; Sat, 28 Aug 2010 05:59:25 +0200 Original-Received: from localhost ([127.0.0.1]:60260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpCZg-000423-Dp for guile-devel@m.gmane.org; Fri, 27 Aug 2010 23:59:24 -0400 Original-Received: from [140.186.70.92] (port=43390 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpCZX-00041Q-Rm for guile-devel@gnu.org; Fri, 27 Aug 2010 23:59:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpCZS-0001XA-IG for guile-devel@gnu.org; Fri, 27 Aug 2010 23:59:15 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:59572 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpCZS-0001X6-Cc for guile-devel@gnu.org; Fri, 27 Aug 2010 23:59:10 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 10A5AD128B for ; Fri, 27 Aug 2010 23:59:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=bSz61LmN+WmC1AH7jn2K6cUGXNA=; b=J/aNM6 l4a6ir2DKaXrgA5daRjpZyJ5WLiv3p2CEPgdRw8CGlMUtWCRRrSYbhFbi2zxLF9u 9MjgcevWvwmGm6RO/KNxz+xGBNLDV/ZtuUX+O4QLs0ft3Nv6wTY0Bky6kcrwCxlQ VVKP7PoeG+tCfW6BAxNUAY1vflnXIwVVLK7dM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=shUcpXKjdjkafUKEQzBhegNW8oa6r/jf jl/5yVhPVnoUK2YBAQAHVgqaLPFl9jTHMMbcZAJN+7f7GZi/c0nDeKYtFkzMFse2 A9zEg0NtCWbeFZQMwvAkwKuKM7sj3Py5yQJxSZSnnz3rStl8omAe96jEk0My0nMI nZRY5LWyOyE= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0D7B4D128A for ; Fri, 27 Aug 2010 23:59:10 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [76.166.198.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id B0931D1289 for ; Fri, 27 Aug 2010 23:59:09 -0400 (EDT) In-Reply-To: (Andy Wingo's message of "Fri, 27 Aug 2010 08:44:40 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 9CB37D6E-B258-11DF-B8B2-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10797 Archived-At: On Fri 27 Aug 2010 08:44, Andy Wingo writes: > On Thu 19 Aug 2010 09:04, Andy Wingo writes: > >> Regarding modf -- it seems that the R6RS extends the definition of >> `modulo' (called `mod') to be defined over the real numbers. >> >> (mod 10 3) => 1 >> (mod 10 3.0) => 1.0 >> (mod 10 3.1) => 0.7 >> >> This appears to be a compatible extension of the R5RS' `modulo', so we >> should just extend our definition. That way we can avoid adding another >> symbol. > > This was a mistaken impression, something I realized while trying to > implement this. From the R6RS rationale, section 11.6.6: > > div and mod [...] I was pointed to http://mumble.net/~campbell/tmp/division.txt today, which is enlightening. I don't know what to do with it yet. I like the snarky take on div0 and mod0 though ;) Andy -- http://wingolog.org/