hermann on Thu, 21 Mar 2024 18:14:40 +0100


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

Re: Error in pari/gp code


On 2024-03-21 17:10, Swati, NoFirstName wrote:
Hi,
 I am trying to write a code to output the position of the last
non-zero entry of this matrix but the code is giving a syntax error. I
am not sure what went wrong. Could someone help in this regard?

 Thanks,
 Swati

"for()" loops are different in PARI/GP, see online help:

? ?for
for(X=a,b,seq): the sequence is evaluated, X going from a up to b. If b is set to +oo, the loop will not stop.

?