From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: real numbers and integer-expt. Date: Wed, 20 Mar 2002 16:54:32 -0600 Sender: guile-devel-admin@gnu.org Message-ID: <87lmcm97fb.fsf@raven.i.defaultvalue.org> References: <876640j23t.fsf@raven.i.defaultvalue.org> <873cz4nuer.fsf@zagadka.ping.de> <87lmcwgmvf.fsf@raven.i.defaultvalue.org> <87g02uyio6.fsf@zagadka.ping.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016675560 27645 127.0.0.1 (21 Mar 2002 01:52:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 01:52:40 +0000 (UTC) Cc: guile-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16nrku-0007Bm-00 for ; Thu, 21 Mar 2002 02:52:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nrkZ-0007BY-00; Wed, 20 Mar 2002 20:52:19 -0500 Original-Received: from delysid.gnu.org ([158.121.106.20]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16noz7-0001FA-00 for ; Wed, 20 Mar 2002 17:55:09 -0500 Original-Received: from dsl-209-87-109-2.constant.com ([209.87.109.2] helo=defaultvalue.org) by delysid.gnu.org with esmtp (Exim 3.34 #2) id 16noyk-0000ql-00 for ; Wed, 20 Mar 2002 17:54:46 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 3FA3A3790; Wed, 20 Mar 2002 16:54:33 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id B6B1D1DEE; Wed, 20 Mar 2002 16:54:32 -0600 (CST) Original-To: Marius Vollmer In-Reply-To: <87g02uyio6.fsf@zagadka.ping.de> (Marius Vollmer's message of "20 Mar 2002 23:32:25 +0100") Original-Lines: 29 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu) Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:134 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:134 Marius Vollmer writes: >> OK, that's a bit confusing -- we have SCM_COMPLEXP which does *not* >> mean the same thing as scm_complex_p -- the former checks to make sure >> the object, tag-wise, is a complex smob, the latter checks to see if >> the object actually contains a complex number, so we have >> >> (complex? 3) -> #t >> >> but >> >> SCM_COMPLEX(SCM_MKINUM(3)) -> 0 > > Yes, good point. I wasn't aware of that. > > > I guess we need to first answer what the purpose of 'integer-expt' is. > Given 'expt' is it useful to have 'integer-expt' as well? Is > integer-expt really only for exact numbers and not for integers? Is > it just a subset of 'expt' for use from C code? All good questions. I get the impression that at least in part, it was designed as a "helper" for use by other numbers.c functions. -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG=1C58 8B2C FB5E 3F64 EA5C 64AE 78FE E5FE F0CB A0AD _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel