From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: bigger integers Date: Fri, 03 Sep 2004 17:00:52 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1094248876 15060 80.91.224.253 (3 Sep 2004 22:01:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2004 22:01:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 04 00:01: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 1C3M7I-0004MU-00 for ; Sat, 04 Sep 2004 00:01:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3MCK-0001jc-O5 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Sep 2004 18:06:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C3MCB-0001iY-Uj for help-gnu-emacs@gnu.org; Fri, 03 Sep 2004 18:06:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C3MCA-0001iE-Bx for help-gnu-emacs@gnu.org; Fri, 03 Sep 2004 18:06:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C3MCA-0001iB-9L for help-gnu-emacs@gnu.org; Fri, 03 Sep 2004 18:06:10 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C3M75-0002c7-3F for help-gnu-emacs@gnu.org; Fri, 03 Sep 2004 18:00:55 -0400 Original-Received: from linux183.ma.utexas.edu (mail@linux183.ma.utexas.edu [146.6.139.172]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id i83M0sF17308; Fri, 3 Sep 2004 17:00:54 -0500 Original-Received: from jcorneli by linux183.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1C3M72-0001vA-00; Fri, 03 Sep 2004 17:00:52 -0500 Original-To: help-gnu-emacs@gnu.org X-all-your-base-are-belong-to-us: You are on the way to destruction. 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:20430 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20430 After all, emacs lisp is designed to count characters in a file, not to compute factorials. "Emacs is the extensible, customizable, self-documenting real-time display editor." If I can't extend or customize it to compute 12! then there seems to be something missing. Kevin's factorial works though so I guess that's good enough for me... oh wait a second now it stopped working. Debugger entered--Lisp error: (error "Lisp nesting exceeds max-lisp-eval-depth") (factorial (1- num)) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(7) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(8) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(9) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(10) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(11) (* num (factorial (1- num))) (if (<= num 0) 1.0 (* num (factorial ...))) factorial(12) eval((factorial 12)) (This same computation was fine just a minute ago, then I tried to compute 100! and now it doesn't want to do 12! any more.) I think calc can cope with arbitrary precision. I guess I'll check that out.