Karim Belabas on Sat, 17 Aug 2019 10:41:13 +0200


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

Re: Traces of finite fields elements lifted to integers


* Emmanuel ROYER, LMBP [2019-08-17 06:09]:
> Hello!
> 
> I would like to compute traces of finite fields elements.
> 
> Let us take F_8 as an example.
> 
> The following is obviously false but I am not able to see why. Is not conjvec(z^4) supposed to have 3 elements?
> 
> ? T=ffinit(2,3);
> ? t=ffgen(T,'t);
> ? z=ffprimroot(t);
> ? F8=concat([0],[z^d | d <- [1..7]]);
> ? tr(h)=vecsum(conjvec(h));
> ? apply(tr,F8)
> %7 = [0, t + 1, t^2 + 1, t^2 + 1, t^2 + t, t + 1, t^2 + t, 0]

Hi Emmanuel,

  Yes, this is wrong. The typo is now fixed in 'master'.

Thanks for your report !

    K.B.

P.S. apply(trace, F8) works directly (and should be much faster).
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 21 23
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`