RE: What is gazonk*.c

Vanuxem Grégory <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Message-ID <1161634095.2828.11.camel@ellipse>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.