Re: forpart docs
Charles Greathouse <[email protected]> Wed, 10 Dec 2025 14:13:02 -0500
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <CANXmBjwWkPjhaj2ZwiZ4j3uCt92Z8ZcE5SyP5n3rDurmREczVg@mail.gmail.com> |
--000000000000d461b806459dd259
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I have also found that slightly confusing.
On Wed, Dec 10, 2025 at 6:11=E2=80=AFAM Ruud H.G. van Tol <rvtol@isolution.=
nl>
wrote:
>
> ? ??forpart
>
> forpart(X =3D k,seq,{a =3D k},{n =3D k}):
>
> [...]
>
> Optional parameters n and a are as follows:
>
> * n =3D nmax (resp. n =3D [nmin,nmax]) restricts partitions to length les=
s
> than nmax (resp. length between nmin and nmax), where the length is the
> number of nonzero entries.
>
> * a =3D amax (resp. a =3D [amin,amax]) restricts the parts to integers le=
ss
> 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
>
>
>
--000000000000d461b806459dd259
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I have also found that slightly confusing.</div><br><div c=
lass=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_=
attr">On Wed, Dec 10, 2025 at 6:11=E2=80=AFAM Ruud H.G. van Tol <<a href=
=3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft:1px solid rgb(204,204,204);padding-left:1ex"><br>
? ??forpart<br>
<br>
forpart(X =3D k,seq,{a =3D k},{n =3D k}):<br>
<br>
[...]<br>
<br>
Optional parameters n and a are as follows:<br>
<br>
* n =3D nmax (resp. n =3D [nmin,nmax]) restricts partitions to length less =
<br>
than nmax (resp. length between nmin and nmax), where the length is the <br=
>
number of nonzero entries.<br>
<br>
* a =3D amax (resp. a =3D [amin,amax]) restricts the parts to integers less=
<br>
than amax (resp. between amin and amax).<br>
<br>
<br>
<br>
So the a and n are explained in a different order than they appear in <br>
the function definition.<br>
Is that on purpose? It was confusing me. :)<br>
<br>
-- Ruud<br>
<br>
<br>
</blockquote></div>
--000000000000d461b806459dd259--