From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: real numbers and integer-expt. Date: 20 Mar 2002 23:32:25 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <87g02uyio6.fsf@zagadka.ping.de> References: <876640j23t.fsf@raven.i.defaultvalue.org> <873cz4nuer.fsf@zagadka.ping.de> <87lmcwgmvf.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016745236 1026 127.0.0.1 (21 Mar 2002 21:13:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2002 21:13:56 +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 16o9sh-0000GR-00 for ; Thu, 21 Mar 2002 22:13:55 +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 16o9sS-0004NA-00; Thu, 21 Mar 2002 16:13:40 -0500 Original-Received: from dialin.speedway42.dip24.dokom.de ([195.138.42.24] helo=zagadka.ping.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16o9n1-00047I-00 for ; Thu, 21 Mar 2002 16:08:03 -0500 Original-Received: (qmail 11711 invoked by uid 1000); 20 Mar 2002 22:32:25 -0000 Original-To: Rob Browning In-Reply-To: <87lmcwgmvf.fsf@raven.i.defaultvalue.org> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 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:140 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:140 Rob Browning writes: > Marius Vollmer writes: > > > Yes. Floats can be integers, too. However, there's a bug > > nevertheless: floats can represent integers that don't fit into 32 > > bit ints. Also, complex numbers can be ints as well. > > 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? _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel