[seqfan] Re: submitting a program, while preserving preformatted text

Richard Mathar mathar at strw.leidenuniv.nl
Sun Sep 12 00:43:57 CEST 2010


In http://list.seqfan.eu/pipermail/seqfan/2010-September/005956.html I wrote

rjm> So Axxxxx(n) returns the value at index n, isAxxxxx(n) tests the value against
rjm> being in the sequence, Axxxxx_list(n) returns the first n values, Axxxx_row(n)
rjm> returns the n-th row in an array or triangle, Axxxx(n,k) returns the value
rjm> in row n, column k.

To make this less abstract,
http://www.strw.leidenuniv.nl/~mathar/progs/oeisPari.gp shows examples of this
library style oriented towards reuse of code. The functions for sequences have
been replaced by Axxxxx_vec (not Axxxxx_list) because this seems to make more
sense within PARI/gp. (To answer a FAQ: yes, I know that some of these
examples might be less efficient than what is currently in the OEIS ...)

RJM




More information about the SeqFan mailing list