Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to find the right way to compute the square root of a number defined in a finite field. For example,

<< FiniteFields`
In[18]:= Sqrt[GF[17][{8}]]
Out[18]= Sqrt[Subscript[{8}, 17]]

Results in an incorrect answer. The correct answer is 5.

share|improve this question

1 Answer 1

PowerMod[n, 1/2, f]

e.g.

PowerMod[8, 1/2, 17]

(* 5 *)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.