|Bill Allombert on Fri, 27 Jun 2003 11:35:48 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Minor points|
On Fri, Jun 27, 2003 at 10:01:34AM +0100, Jon Perry wrote: > 1) Why is: > > a(n++)=n^2 > > not allowed (as opposed to a(n)=n++;n^2)? n++ is not a valid formal parameter. If I were crazy enough to define a(n++)=n^2, this would be an alias for a(n)=n--;n^2 instead! How do you define C[X++] the polynomials in the X++ indeterminate ? > 2) How about a vector0 function which defines v so that sequences with a > zero offset can be correctly aligned within the vector. PARI vectors start at 1. You cannot have a function that return a vector starting at 0 since this is not a valid PARI object. Cheers, Bill.