From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.help Subject: Re: bigger integers Date: 03 Sep 2004 11:20:04 +0100 Organization: Dept of Computer Science, University of Manchester, U.K. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094209518 15098 80.91.224.253 (3 Sep 2004 11:05:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2004 11:05:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 03 13:05:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C3BsR-0004Vj-00 for ; Fri, 03 Sep 2004 13:05:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3BxS-0002yG-Cw for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Sep 2004 07:10:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!teaser.fr!easynet-quince!easynet.net!zen.net.uk!demorgan.zen.co.uk!130.88.203.18.MISMATCH!peernews.mcc.ac.uk!cs.man.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: rpc71.cs.man.ac.uk Original-X-Trace: wapping.cs.man.ac.uk 1094206804 27676 130.88.198.228 (3 Sep 2004 10:20:04 GMT) Original-X-Complaints-To: news@wapping.cs.man.ac.uk Original-NNTP-Posting-Date: Fri, 3 Sep 2004 10:20:04 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 Original-Xref: shelby.stanford.edu gnu.emacs.help:125072 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20425 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20425 >>>>> "Joe" == Joe Corneli writes: Joe> This fails on big numbers like 12. Joe> (defun factorial (num) Joe> (if (<= num 0) Joe> 1 Joe> (* num (factorial (1- num))))) Joe> Suggestions on how to make it work for bigger numbers? I think calc can cope with arbitrary precision. http://www.synaptics.com/people/daveg/ Cheers Phil