[Top][All Lists]

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

fib(30) crash

From: Info XLOG
Subject: fib(30) crash
Date: Wed, 22 Aug 2018 22:18:51 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4

Dear All,

Was trying:

   GNU Prolog 1.4.5 (64 bits)
  Copyright (C) 1999-2018 Daniel Diaz

  fib(0, R) :- !, R = 0.
  fib(1, R) :- !, R = 1.
  fib(N, X) :- M is N-1, fib(M, Y), K is M-1, fib(K, Z), X is Y+Z.

  ?- fib(30, X).

But it crashed. Is this to expect?

Best Regards

reply via email to

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