|Bill Allombert on Tue, 30 Dec 2014 23:10:04 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Conversion to field element|
On Tue, Dec 30, 2014 at 12:11:12AM +0100, Josef Eschgfaeller wrote: > Trying to calculate sqrt(11) in GF(289), > is this the right way of conversion of > 11 to an element of the field? > p=17; p2=p^2 > t=ffgen(p2,'t) > eleven=11+0*t \\ Correct conversion? > r=sqrt(eleven) > print(r) \\ 5*t+11 > print(r^2) \\ 11 Personnally, I would use eleven=11*t^0 but this is mostly a matter of taste. Cheers, Bill.