0
$\begingroup$

good morning,

can any one tell me how use indeterminates in Matlab with coefficient from Galois field .$F_4=\{0,1,2,3\}$ and ,$a_1,a_2$ two indeterminates ,sow : $$(1a_1)+(1a_1)=0$$ over $F_2$ or

$$(1a_1)(1a_2)+(2a_1)(1a_2)=(3a_1)(2a_2)$$.the last example i write is addition of multivarible polynomial and i am not shire if it correct. i have generate $F(4)$ with :

m = 2;

els = gf([0:2^m-1]',m);

enter image description here

and two symbols in matlab with

syms a1;

syms a2;

and whene id do the multiplication :

els(2)*a1 i have the following message : enter image description here

enter image description here

$\endgroup$
  • $\begingroup$ Why do you need it ? I gave you a way to reduce it to arithmetic of matrices modulo $2$ $\endgroup$ – reuns Jul 25 '17 at 13:24
  • $\begingroup$ the problem I will get matrice with multivariate polynomial entry and a need to calculate the determinant of this matrice if you can give example withe Matlab please $\endgroup$ – Mokh Tar Bou Jul 25 '17 at 14:03
  • $\begingroup$ a have add picture in the question $\endgroup$ – Mokh Tar Bou Jul 25 '17 at 14:06
0
$\begingroup$

It seems that you only need arithmetic in the Galois field to solve the equations. You mentioned in a comment that you might need to compute the determinant of a matrix containing elements from GF$(2^m)$. You can compute the determinant in MATLAB by using the det() function.

The following example shows how to use the det() function for a matrix of GF($16$) elements.

els = gf(0:15,4);

det([els(4) els(7);els(10) els(5)]) gives you $15$.

I hope that helps.

$\endgroup$
  • $\begingroup$ ok thank you for your help i will try it if it work i will tel you $\endgroup$ – Mokh Tar Bou Jul 25 '17 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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