Skip to main content

Questions tagged [finite-fields]

Filter by
Sorted by
Tagged with
1 vote
1 answer
102 views

I am introducing a rule: $Post = # /. x_?NumericQ FiniteField[q_?PrimeQ] [s_] :> FiniteField[q] [x] FiniteField[q] [s] &; But for some reason, upon ...
Anixx's user avatar
  • 3,862
2 votes
2 answers
236 views

FiniteField[2][2] should give FiniteField[2][0] in my opinion. Instead it gives ...
Anixx's user avatar
  • 3,862
2 votes
0 answers
110 views

In this [Wolfram reference page] we read that: PowerMod[a,1/r,m] should find a modular $r$-th root of $a$ modulo $m$. However, with Engine 14.1.0 I get a claim that ...
Jos Bergervoet's user avatar
1 vote
0 answers
100 views

In the context of coding theory, linear codes over finite fields make repeated use of kernels/nullspaces for creating e.g. parity check matrices. However, often the "dot" product between two ...
Mark's user avatar
  • 11
1 vote
0 answers
101 views

I am new to the Finite Fields package and am finding the package tutorial confusing. I am wondering, if I am working over GF[4], is there a way of finding the elements of GF[4] in terms of the ...
am567's user avatar
  • 997
4 votes
1 answer
271 views

I'm afraid this question is trivial, but I have spent the last couple of hours trying to figure out what goes wrong without any luck. Given the following: ...
M.B.'s user avatar
  • 143
0 votes
1 answer
137 views

I want to compute all $<=d$ degree bivariate polynomials of form $f_1(x)g_1(y) + f_2(x)g_2(y)$, over field $GF(2)$, and evaluate them at a certain polynomial input for eg $d = 1$, evaluation at $(p^...
hans's user avatar
  • 1
2 votes
1 answer
157 views

I have a list of vectors from a vector space over a finite field of order p for some prime p. For example: I have: {{1,0,1},{0,1,2}} where the vectors are in $\mathbb{F}_3^3$. I want a list of the ...
geoffrey's user avatar
  • 897
5 votes
3 answers
696 views

Over $\mathbb{F}_{4}$, for example, I am looking for a function that will, for example, reduce the polynomial function (not an element of the finite field itself) $$x^5 + 6x^4 +x^3 + 1 \rightarrow x^2 ...
Kevin's user avatar
  • 53
0 votes
0 answers
187 views

Think of multiplictavie group of finite field F[p,n], where p is a prime number and n is a positive integer. The whole elements of F[p,n] can be represented as p^n-p^(n-1) positive integers in the ...
imida k's user avatar
  • 4,435
6 votes
1 answer
302 views

Suppose $F=\{0,1,w,w^2\}$ is a field of $4$ elements, where $w$ is a root of $x^2+x+1$. (This means: $w^2=w+1,w=w^2+1, 1=w+w^2,w^3=1,2w=2w^2=1+1=0$). In order to find out the remainder $$\frac{(1+w ...
dmtri's user avatar
  • 634
2 votes
0 answers
80 views

I tried to generate general and special linear groups PGL2 and PSL2 over finite fields using straightforward algorithms over finite fields: The generators are permutations defined as the additive ...
Slepecky Mamut's user avatar
2 votes
0 answers
375 views

I'd like to know if there exists any method on Mathematica, third-party coded resource or library that can compute roots of a polynomial over an extension $\mathbb{E}$ where $E=F_p[x]/f(x)$ and $f(x)$ ...
kub0x's user avatar
  • 203
1 vote
0 answers
245 views

I want to find the multiplicative order of say the element {0,1,0} in GF[8]. I made a list: b = Map[GF[8][#] &, Tuples[{0, 1}, 3]] I tried: NestWhileList[b[[3]]*# &, b[[3]], # != b[[5]] &...
geoffrey's user avatar
  • 897
2 votes
2 answers
485 views

I've just read Formatting results of a polynomial long division with great interest. For my teaching purposes it would be great to enable the code given in that post to treat polynomial division with ...
Uwe Gotzes's user avatar
2 votes
0 answers
271 views

I was interested in using Mathematica to do linear algebra over $\mathbb{F}_2$ in the context of solving for the code space of linear codes given a parity check matrix in $\mathbb{F}_2$. I've searched ...
Joe's user avatar
  • 175
1 vote
1 answer
246 views

I have the following system of equations, 1+x+y+z==0, 1+x*y+y*z+x*z==0 which I want to solve in the extension field of GF(2), the algebraic closure of GF(2) for ...
cleanplay's user avatar
  • 690
1 vote
1 answer
601 views

For example, choose $p(X) = X^4 + X + 1$, how to construct addition and multiplication tables for $\mathbb{F}_{2}[X] \mod{X^4 + X + 1} $ ?
Gan Sama's user avatar
1 vote
1 answer
292 views

I have been playing with Mathematica for a while. I tried generating addition table for a simple ring $R$ such that $R = \mathbb{Z}_{15}$ as asked in my last question. However, I am completely ...
Heisenberg's user avatar
2 votes
1 answer
222 views

How do I generate an addition table for ring R such that $R = \mathbb{Z}_{15}$ or generally speaking, how to generate an addition table for any polynomial ring <...
Heisenberg's user avatar
1 vote
1 answer
247 views

Is there a way to use a finite field for plotting functions in Mathematica? I couldn't find any options in the documentation.
Simon Iversen's user avatar
0 votes
0 answers
311 views

Can I do singular value decomposition of a matrix which has entries from a field K, in my case $Z_m$, in Mathematica? For example, I have a matrix over a field Z2, with entries only 0 and 1. Using an ...
cleanplay's user avatar
  • 690
1 vote
1 answer
163 views

My code below returns 4032. The OEIS sequence A002820 says there are 5824 such matrices. Is there something wrong with my code. I am assuming that the eigenvalues of a matrix are precisely the ...
Geoffrey Critzer's user avatar
1 vote
1 answer
467 views

Suppose the finite field $F=GF(2^d)$ contains all $p$-th roots of unity, where $p$ is a prime and $\omega\in F$ is the principal $p$-th root of unity. Let $V=(\omega^{ij})$ be a $p\times p$ ...
Saad Quader's user avatar
0 votes
0 answers
871 views

How to compute the eigenvalue of a matrix over a finite field? I would like to compute the eigenvalues of the following matrix over $\mathbb F_5$. ...
jublikon's user avatar
  • 101
1 vote
2 answers
330 views

I'm working on a problem at the moment using Mathematica and the Finite Fields package, and I've ran into some difficulty converting the problem to a Matrix, so I'm hoping somebody here would know how ...
Axiom of Exhaustion's user avatar
5 votes
1 answer
476 views

I am using Mathematica 10.4.1.0. When I specify the "Modulus" option to be a non-prime, the functions RowReduce and MatrixRank return the error ...
zornslemmings's user avatar
2 votes
0 answers
340 views

How can I display the elements (polynomials) of the ring $$\mathbb Z_3[x]/\langle x^3+2x^2+1\rangle$$ Is there a built-in function that displays them?
user364961's user avatar
3 votes
1 answer
323 views

I want to plot graphs of polynomials, and the solutions to equations, modulo a prime. So for example, for modulus 5 plot the graph of $x^2$, or the solutions to $x^2+y^2=2$, as subsets of $\mathbb{F}...
Colin McLarty's user avatar
2 votes
0 answers
139 views

I'm trying to do arithmetic using the FiniteFields package. Supposing a is a generator of a Galois field (say GF(2^5)) I want to be able to simplify things like a^32 and (a^8)^-1. I don't care about ...
Zen's user avatar
  • 121
1 vote
1 answer
345 views

I am quite new to mathematica, I am looking for a function similar to QuotientRemainder[] but which works with finite fields as implemented by the ...
Eric's user avatar
  • 13
2 votes
1 answer
1k views

I'm newbie in mathematica. I would like to construct a conjugacy class of an involution in GL over a finite field, but have no idea how to make the group and a matrix over the field. I'm sure that ...
vicent's user avatar
  • 21
1 vote
1 answer
956 views

If we have an $n \times n$ matrix, with all entries taken modulo $p$, how can we output the three matrixes in LDU decomposition, with all entries again modulo $p$? We can assume the input matrix is ...
Matt Groff's user avatar
  • 1,171
0 votes
1 answer
210 views

I'm trying to use the Finite Fields package to show that $x$ is not a primitive element of $\mathbb{Z}_3[x]/\langle x^3 + 2x + 2 \rangle \cong GF(3^3)$. The idea is to take the following piece of code:...
silvascientist's user avatar
0 votes
0 answers
167 views

Consider a field $R$ and the ring $A=R[y]$. Consider two polynomials $g,h\in A[x]$. I want to obtain $d=\gcd(g,h)\in A[x]$ and two polynomials $s,t\in A[x]$ satisfying the Bézout relation: $sg+th=d$. ...
user39756's user avatar
  • 167
0 votes
0 answers
122 views

If I input: ToNumberField[Sqrt[2], 2^(1/4)] Mathematica returns: AlgebraicNumber[Root[-2 + #1^4 &, 2], {0, 0, 1, 0}] How ...
Geoffrey Critzer's user avatar
3 votes
1 answer
199 views

I am working with the finite fields package in Mathematica 9. If I input: GF[7, {-2, 0, 0, 1}][{3, 4, 1}]^2 Mathematica gives me $\{4,5,1\}_7$. I want to ...
Geoffrey Critzer's user avatar
2 votes
2 answers
237 views

If I have a polynomial: $$f(x) = c_0 x^0 + c_1 x^1 + c_2 x^2 + \dots + c_n x^n$$ How can I find the polynomial, modulo a prime number $p$? In other words, I want to take all of the coefficients ...
Matt Groff's user avatar
  • 1,171
31 votes
1 answer
4k views

Does Mathematica have any built-in fast algorithms for calculating discrete logarithms over $(\mathbb{Z}_p)^\times$ (the group of integers modulo $p$)? Essentially, for a fixed large prime ...
2012rcampion's user avatar
  • 7,931
2 votes
1 answer
289 views

I would like to know how I can get the primitive polynomials to generate the points of the fields GF(7) and GF(9) using Mathematica. Any help is appreciated.
user13's user avatar
  • 21
3 votes
1 answer
211 views

I am (still) fairly new to Mathematica and trying to perform some operation on the matrix elements, say for the matrix ...
reach2brb's user avatar
  • 119
1 vote
0 answers
284 views

In a Mathematica session, I evaluate: Needs["FiniteFields`"]; fld = GF[2]; Now, for example, I'd like to compute $a^3+a^5$ for $a \in{Z_2}$. The result I'd like ...
Imu's user avatar
  • 13
7 votes
1 answer
624 views

I would like to compute the Smith normal form of a matrix with coefficients in $GF(p)$. In particular, I am interested in $GF(2)$. I have used the Smith normal form packages for integer and ...
Alexander Gruber's user avatar
10 votes
2 answers
2k views

I can find no resources for doing elliptic curve cryptography. I have used the finite field package, but I find it cumbersome and it does not seem to have any builtin methods for ECC. How can I get ...
Tyler Durden's user avatar
  • 4,142
0 votes
1 answer
316 views

I am trying to find the right way to compute the square root of a number defined in a finite field. For example, ...
Tyler Durden's user avatar
  • 4,142
0 votes
1 answer
1k views

Is there a way in Mathematica 9 to enter and solve the following equation $p(x) = r^x$ where $p(x)$ is a polynomial whose coefficients are drawn from a finite field, and $r$ is a primitive root of ...
Massimo Cafaro's user avatar
2 votes
1 answer
1k views

How can I calculate all binary irreducible polynomials of degree 31? or how i calculate all irreducible $f$ in $\mathbb Z_2[x]$? (The irreducible polynomial in $\mathbb Z_2[x]$ and $\mathbb R$ are ...
mshj's user avatar
  • 121
2 votes
1 answer
319 views

We can use RowReduce with a field. For example, we state RowReduce[{{1,3,5},{0,1,2}},Modulous->23] ...which then returns: ...
Matt Groff's user avatar
  • 1,171
2 votes
0 answers
1k views

One can easily factor a polynomial over finite fields of prime order, using Factor command: ...
Sadeq Dousti's user avatar
0 votes
3 answers
731 views

I am a beginner with Mathematica. For my research purpose I would like to get a list of all the polynomials in $F_2[x,y,z,w]$ and for each polynomial I would like to know the result that it gives then ...
Mrinmoy Datta's user avatar