Max Alekseyev on Sat, 24 Feb 2018 18:06:47 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: forpart() behavior
- From: Max Alekseyev <maxale@gmail.com>
- Date: Sat, 24 Feb 2018 12:06:39 -0500
- Delivery-date: Sat, 24 Feb 2018 18:06:47 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bhSoseFiRlEBlKXvw+2O7/f5msBwkDb1Ck6PZ66VdKQ=; b=XftXkNeCRBkcskZbmTqsjfVR6NSN75L5bZeiCEVK1BAMLaioFRbmEJHHiQWZFzgPNd xI2zWQhnVui09ESjdfSJ2DAb9maNwL9BnKkHs3+xtseamO1kWbcwwHzhGBrTJ7vnSW5x ihGHUVIG0UM3frQXmBLDqKOM/zUKjT2lwylE8JOtDVJXzDH0NaQ7le76zXDtfz66tOIp PxgT2r7qE7dhHx9VMJzeNExU4SjDMvcUInx8ogihZ8o5PrWikpxYpJMR/XlsF6Rvd4x9 BbbW8yAvx08UCZ6sfyU28W1gyvGU8/Zr+QeD7RP70gpzZAStiGw8gus0yKaWoikOzVU1 cFRw==
Hello!
In PARI/GP version Version 2.10.0 (development 21603-bef585b) I observe:
===
? forpart(p=1,print(p),[0,5],3)
Vecsmall([0, 0, 1])
? forpart(p=0,print(p),[0,5],3)
? forpart(p=1,print(p),[0,5],[3,4])
Vecsmall([0, 1, 1, -1])
===
I believe "forpart(p=0,print(p),[0,5],3)" should produce "Vecsmall([0, 0, 0])",
and "forpart(p=1,print(p),[0,5],[3,4])" should produce "Vecsmall([0,
0, 1])" and "Vecsmall([0, 0, 0, 1])".
What's wrong?
Regards,
Max