[Top][All Lists]

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

Re: Iteratively calling Prolog from C

From: Daniele Peri
Subject: Re: Iteratively calling Prolog from C
Date: Thu, 17 Jul 2003 18:53:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Daniel Dudley wrote:
Daniele Peri wrote:

Daniel Dudley wrote:

   | ?- factorial(15,F).
   F = -143173632


Such little N doesn't really help testing the recursion
optimization. As I told you before you may want to turn the
factorial into a sum of integers (not very important) and try
with a N large enough (important). The representation error
you are talking about is a different subject.

Using the backtracking algorithm and ECLiPsE 5.6:

Big enough for you?


Of course my answer is no, as long as you keep using other prolog environments. It should be obvious as I am posting messages in the "gnuprolog mailing list" but I am interested in gprolog's recursion optimization.


reply via email to

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