From: Pascal Bourguignon <spam@mouse-potato.com>
Subject: Re: bigger integers
Date: 03 Sep 2004 02:11:16 +0000 [thread overview]
Message-ID: <87r7pkgkzf.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.1324.1094164438.1998.help-gnu-emacs@gnu.org
Joe Corneli <jcorneli@math.utexas.edu> writes:
> This fails on big numbers like 12.
>
> (defun factorial (num)
> (if (<= num 0)
> 1
> (* num (factorial (1- num)))))
>
> Suggestions on how to make it work for bigger numbers?
Run it on a Common-Lisp implementation instead of emacs lisp.
After all, emacs lisp is designed to count characters in a file, not
to compute factorials.
--
__Pascal Bourguignon__ http://www.informatimago.com/
Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.
next prev parent reply other threads:[~2004-09-03 2:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1324.1094164438.1998.help-gnu-emacs@gnu.org>
2004-09-02 23:10 ` bigger integers Kevin Rodgers
2004-09-03 2:11 ` Pascal Bourguignon [this message]
2004-09-03 10:20 ` Phillip Lord
2004-09-04 8:18 ` Alan Mackenzie
2004-09-04 11:09 ` Neil Woods
2004-09-06 0:00 ` Miles Bader
2004-09-17 19:45 ` giacomo boffi
[not found] <mailman.1438.1094249173.1998.help-gnu-emacs@gnu.org>
2004-09-03 23:29 ` Pascal Bourguignon
2004-09-07 17:46 ` Kevin Rodgers
2004-09-03 22:00 Joe Corneli
-- strict thread matches above, loose matches on Subject: below --
2004-09-02 22:28 Joe Corneli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r7pkgkzf.fsf@thalassa.informatimago.com \
--to=spam@mouse-potato.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.