Charles Greathouse on Wed, 10 Dec 2025 20:13:32 +0100


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

Re: forpart docs


I have also found that slightly confusing.

On Wed, Dec 10, 2025 at 6:11 AM Ruud H.G. van Tol <rvtol@isolution.nl> wrote:

? ??forpart

forpart(X = k,seq,{a = k},{n = k}):

[...]

Optional parameters n and a are as follows:

* n = nmax (resp. n = [nmin,nmax]) restricts partitions to length less
than nmax (resp. length between nmin and nmax), where the length is the
number of nonzero entries.

* a = amax (resp. a = [amin,amax]) restricts the parts to integers less
than amax (resp. between amin and amax).



So the a and n are explained in a different order than they appear in
the function definition.
Is that on purpose? It was confusing me. :)

-- Ruud