Bill Allombert on Mon, 24 Sep 2012 16:17:25 +0200

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

Re: not a function in function call

On Mon, Sep 24, 2012 at 10:07:58AM -0400, Mathieu Carbou wrote:
> Hello,
> I am new to PARI/gp. I am coming from Java programming language so the
> syntax is quite new for me. I just want to compute the sum of Fib
> numbers stepping by 3. Here is my script:
>   ***   at top-level: ...;while(f<m,s=s+f;i=i+3;f=fibonnacci(i);print(
>   ***                                             ^--------------------
>   ***   not a function in function call

The function is actually called fibonacci with a single 'n'.