Questions tagged [finite-fields]
The finite-fields tag has no summary.
54 questions
1
vote
1
answer
102
views
Why is rule matching FiniteField not working? [closed]
I am introducing a rule:
$Post = # /. x_?NumericQ FiniteField[q_?PrimeQ] [s_] :> FiniteField[q] [x] FiniteField[q] [s] &;
But for some reason, upon ...
2
votes
2
answers
236
views
FiniteField elements beyond the field size
FiniteField[2][2] should give FiniteField[2][0] in my opinion. Instead it gives ...
2
votes
0
answers
110
views
Strange incorrect output message for modular r-th root computation with PowerMod
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 ...
1
vote
0
answers
100
views
Nullspace etc using a different inner product over finite fields [closed]
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 ...
1
vote
0
answers
101
views
Is it possible to use the Finite Fields package to define the elements of GF(4) in terms of the irreducible polynomial $P$?
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 ...
4
votes
1
answer
271
views
Solving matrix equations over a finite field
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:
...
0
votes
1
answer
137
views
Compute all bivariate polynomials over GF(2) of degree d or less and evaluate them at certain polynomial input
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^...
2
votes
1
answer
157
views
How do I get the span of a list of vectors from a finite field of prime order
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 ...
5
votes
3
answers
696
views
Reducing Polynomial Functions over a Finite Field
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 ...
0
votes
0
answers
187
views
Inverse/Division in finite field?
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 ...
6
votes
1
answer
302
views
Fields in Mathematica
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 ...
2
votes
0
answers
80
views
Does Mathematica limit the size of a set of permutation group generators?
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 ...
2
votes
0
answers
375
views
Root finding over finite field extension
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)$ ...
1
vote
0
answers
245
views
How to compute the multiplicative order of an element in a finite field
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]] &...
2
votes
2
answers
485
views
Formatting results of a polynomial long division (Extension for finite fields)
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 ...
2
votes
0
answers
271
views
Is linear algebra over $\mathbb{F}_2$ or a finite field possible? [closed]
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 ...
1
vote
1
answer
246
views
Parametric solution of a system of polynomial equations
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 ...
1
vote
1
answer
601
views
How to construct addition and multiplication table for finite field?
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} $ ?
1
vote
1
answer
292
views
How to generate addition table for $GF(2)[x] \mod x^3 + 1 = 0$ [closed]
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 ...
2
votes
1
answer
222
views
How to generate addition table for ring $\mathbb Z_{15}$?
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 <...
1
vote
1
answer
247
views
Plotting over a finite field
Is there a way to use a finite field for plotting functions in Mathematica? I couldn't find any options in the documentation.
0
votes
0
answers
311
views
singular value decomposition of a matrix over a field K
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 ...
1
vote
1
answer
163
views
What is the number of (binary) 4 x 4 matrices over GF(2) (the field with 2 elements) that do not have an eigenvalue of 0 or 1
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 ...
1
vote
1
answer
467
views
Checking matrix-invertibility in finite fields
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$ ...
0
votes
0
answers
871
views
How to compute the eigenvalue of a matrix over a finite field
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$.
...
1
vote
2
answers
330
views
Construct Matrices from Coefficient of f[x] in Finite Fields?
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 ...
5
votes
1
answer
476
views
Matrix operations "Modulus->non-prime" problem
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
...
2
votes
0
answers
340
views
display the elements of a quotient ring
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?
3
votes
1
answer
323
views
How to plot a polynomial modulo a prime
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}...
2
votes
0
answers
139
views
Finite fields package doesn't simplify
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 ...
1
vote
1
answer
345
views
How to perform an euclidian division in a Finite Field?
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 ...
2
votes
1
answer
1k
views
How can I make general linear group over finite field?
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 ...
1
vote
1
answer
956
views
How can we do LDU decomposition modulo $p$?
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 ...
0
votes
1
answer
210
views
Why is While not showing any output?
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:...
0
votes
0
answers
167
views
PolynomialExtendedGCD in 2 variables
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$. ...
0
votes
0
answers
122
views
How can I express Sqrt[2] as an element in the field Q(2^(1/4))?
If I input: ToNumberField[Sqrt[2], 2^(1/4)]
Mathematica returns: AlgebraicNumber[Root[-2 + #1^4 &, 2], {0, 0, 1, 0}]
How ...
3
votes
1
answer
199
views
How do I convert Subscript[{4, 5, 1}, 7] to the integer 4*1 + 5*7 + 1*7^2 = 88?
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 ...
2
votes
2
answers
237
views
How do I find a polynomial in a field?
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 ...
31
votes
1
answer
4k
views
Fast calculation of discrete logarithms
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 ...
2
votes
1
answer
289
views
Primitive polynomials of a field [closed]
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.
3
votes
1
answer
211
views
updating matrix elements based on a condition
I am (still) fairly new to Mathematica and trying to perform some operation on the matrix elements, say for the matrix
...
1
vote
0
answers
284
views
Package FiniteFields
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 ...
7
votes
1
answer
624
views
Computing Smith normal form of a matrix with $\bmod p$ coefficients
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 ...
10
votes
2
answers
2k
views
Elliptic curve cryptography in Mathematica
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 ...
0
votes
1
answer
316
views
Square root of a value defined in a finite field?
I am trying to find the right way to compute the square root of a number defined in a finite field. For example,
...
0
votes
1
answer
1k
views
How to enter and solve this equation in finite fields?
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 ...
2
votes
1
answer
1k
views
How can I calculate all irreducible polynomials of 31 degree in $\mathbb Z_2[x]$?
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 ...
2
votes
1
answer
319
views
How can we use RowReduce with a modulous AND variables?
We can use RowReduce with a field. For example, we state
RowReduce[{{1,3,5},{0,1,2}},Modulous->23]
...which then returns:
...
2
votes
0
answers
1k
views
Polynomial factorization over finite fields with non-prime order
One can easily factor a polynomial over finite fields of prime order, using Factor command:
...
0
votes
3
answers
731
views
How to evaluate all the essentially distinct polynomials in 4 variables over $F_2$ on points of $F_2 ^ 4$
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 ...