Mathieu Carbou on Mon, 24 Sep 2012 16:10:24 +0200


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

Re: not a function in function call


Oups!! Sorry... After 20min searching I found the doble n... sorry !


On 24-Sep-2012 10:07, 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:
>
> {
>     s=i=f=0;
>     m=4000000;
>     while(f<m,
>         s=s+f;
>         i=i+3;
>         f=fibonnacci(i);
>     )
>     print("Result=" s);
> }
>
> I don't know if there is a better way to do this... But it currently
> prints me the error message below and I really cannot figure why..
>
> Thanks for the help !
>
>   ***   at top-level: ...;while(f<m,s=s+f;i=i+3;f=fibonnacci(i);print(
>   ***                                             ^--------------------
>   ***   not a function in function call
>
>

-- 

Mathieu Carbou
Cell: 514-660-4287