John Cremona on Fri, 04 Jul 2025 17:11:28 +0200


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

Re: How to declare a finite field element resulting from a Prime Power in Pari/ɢᴘ ?




On Fri, 4 Jul 2025, 14:37 Bill Allombert, <Bill.Allombert@math.u-bordeaux.fr> wrote:
On Fri, Jul 04, 2025 at 03:24:23PM +0200, Laël Cellier wrote:
> Thank you. And to which value I should set P to ?

I told you already:

  You need to find the minimal polynomial P of z12 in SageMath and the characteristic p.

If you do not know how to do that in SageMath, ask a SageMath forum.


z12.minpoly()

should do it.

John


You can also do

z12 = ffgen([p,12]);

and PARI will pick one for you, but it might not be the same as SageMath.

Cheers,
Bill