On Mar 9, 6:38 pm, Nick Alexander <[email protected]> wrote: > On 9-Mar-09, at 8:48 AM, Noel wrote: > > > > > Hello Y'all, > > > What's the best way of listing all polynomials of a given degree with > > coefficients in a finite field? > > If you want a one liner, you could use > > sage: [ GF(3)['x'](list(t)) for t in (GF(3)^2) ] > [0, 1, 2, x, x + 1, x + 2, 2*x, 2*x + 1, 2*x + 2] > > Nick
if you want another one liner, and an exact degree, you could use list(GF(3)['x'].polynomials(of_degree=2)) Yann --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
