[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Axiom-mail] What is gazonk*.c
From: |
Vanuxem Grégory |
Subject: |
RE: [Axiom-mail] What is gazonk*.c |
Date: |
Mon, 23 Oct 2006 22:08:15 +0200 |
Le lundi 23 octobre 2006 à 12:00 -0400, Bill Page a écrit :
> > I got following error when I tried to build a Fibonacci number.
> > Anyone could show me what I did wrong?
>
> You are not doing anything wrong. I also get an error when I
> try your definition, although it is a different error:
>
> Compiling function p as a recurrence relation.
> (4) -> p(3)
>
> >> System error:
> The function |*1;p;1;initial| is undefined.
No problem with Gold (patch-50):
(1) -> )set fun comp on
(1) -> p(0) == 0
(2) -> p(1) == 1
(3) -> p(n) == p(n-1)+p(n-2)
(4) -> p(3)
Compiling function p with type Integer -> NonNegativeInteger
Compiling function p as a recurrence relation.
(4) 2
Greg