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
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: not a function in function call
- From: Mathieu Carbou <mathieu.carbou@gmail.com>
- Date: Mon, 24 Sep 2012 10:10:06 -0400
- Delivery-date: Mon, 24 Sep 2012 16:10:24 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=acgj++FwRgYERzOorjeT+OSanEmPkqAMm+kGkDjG6tQ=; b=auXBJLp03HS7pbPCMz8wpNRGo4/IuBKgQYZ3Mr6qWfdWickA7BL6qn31bDA3Ra6uzi NtJwbZJrZhFTEwporMBqkZK1vuh1MhY8StgjQp5wtpCvzFkYAeezyrb80OgyBqWyuwl3 e0N0/MxNxBPa2zFoem61MfwH5NX0ipEcf+89SHHS8gSM0jElWSjYXfeXB+sYlOINRmFJ Ne19waliV8nKOjFR+HWYHJrrAcBH3ClD7CLBqA0UXBkx8Fuxoc0bh9cBAJ+mDJB7lEKI Vedasnl0VWWeF+SSdiaonhmBU4k5sY/7ueDQRPlq5bnF4KJmJypAmRG81DK0h8d8MUGl rPHw==
- In-reply-to: <5060693E.5020103@gmail.com>
- References: <5060693E.5020103@gmail.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
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