Re: Questions on alternative set notations
Bill Allombert <[email protected]> Thu, 15 Jan 2026 15:27:08 +0100
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <aWj5PFG0Elv5QsuZ@seventeen> |
On Thu, Jan 15, 2026 at 12:49:07AM +0100, [email protected] wrote: > Alternative set notations are documented here: > https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.17.2/users.pdf#page=25 > > As an example I am interested in Euler polynomial values > > ? [k^2+k+41|k<-[0..11]] > [41, 43, 47, 53, 61, 71, 83, 97, 113, 131, 151, 173] > ? > > that belong to Mod(1,4). > > > Which of the following is preferable? > (1+2 filter, so 50% of the values; 3 results in 100% of initial set values) > > ? [k^2+k+41|k<-[0..11],(k%4)%3==0] > [41, 53, 61, 97, 113, 173] Surely this one is the more natural ? > Is there a more natural alternative to sequence assignment workaround > "...;k<-[f(l)]..." that works in alternative sets? No, sorry! Cheers, Bill.