Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    $\begingroup$ What are you trying to achieve? $\endgroup$ Commented Oct 25 at 22:52
  • $\begingroup$ @azerbajdzan it seems, with Finite Field function no basic replacement rule works: exp/.FiniteField[x_]:>FiniteField[z]; exp/.FiniteField[x_][y_]:>FiniteField[z][y]; exp/.FiniteField[__]:>FiniteField[z]; exp/.FiniteField[x_]->FiniteField[z]; $\endgroup$ Commented Oct 25 at 23:37
  • $\begingroup$ @azerbajdzan I want to replace in output a list with a finite field expression with a number. For instance, FFvector[{n_, FiniteField[q][n_]}]:>n $\endgroup$ Commented Oct 25 at 23:41
  • $\begingroup$ Look at the FullForm of some FiniteField - this is the pattern that should be matched. $\endgroup$ Commented Oct 26 at 8:24
  • $\begingroup$ Have you tried something like vec=Table[FiniteField[3][k],{k,0,2}]; Through[vec["Index"]]? $\endgroup$ Commented Oct 26 at 14:53