help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bigger integers


From: Phillip Lord
Subject: Re: bigger integers
Date: 03 Sep 2004 11:20:04 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93

>>>>> "Joe" == Joe Corneli <jcorneli@math.utexas.edu> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]