Mathieu Carbou on Mon, 24 Sep 2012 16:08:16 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
not a function in function call
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: not a function in function call
- From: Mathieu Carbou <mathieu.carbou@gmail.com>
- Date: Mon, 24 Sep 2012 10:07:58 -0400
- Delivery-date: Mon, 24 Sep 2012 16:08:16 +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 :x-enigmail-version:content-type:content-transfer-encoding; bh=QjWJeGeWCwvYxLkTwL+8nrjaaaaKNZiD/mRAIF4HgRI=; b=Wscx/kDGehmNVn++t7ug6QpdbsJsvkfQ3+rzHxp1FgqGTrwUDXnlZFRSeJnVh6JwYu ERBaZ7f0BaUk4qjppuAPtWFCBp24AdqyqyZVT0AH/HA3gUwUWRAzkxyjjUXNKeCp8EFg NgY9QTLzn6r87Lm47KFRSIUakP9aWxYyiEFxf0XRzCBDqP+N+mNXGMV8216B+0I5kkW8 Y7/NP666SvMfAlk0XDw00nascijLm7ZqsWwyvrLL+xgGcUa1CdslM/IjxRUKzbBp+B7q NptHhEOGHgGWc9EXXtf3uV2PRHSYmFjrC3zArzuNJaWMEDdmRy58Z4xEZEcOVdhAw+x4 7z7Q==
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
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