matlab gftuple,使用MATLAB的有限域计算

Galois Field Computation in MATLAB:

Primitive Polynomial:

An Irreducible polynomial p(X) of degree m is said to be primitive if the smaller positive integer n for which p(X) divides X n + 1 is n = 2m – 1. For example, p(X) = X4 + X + 1 divides X15 +1 but not divides any X n +1 for 1 ≤ n < 15.

In Matlab you can easily find the primitive polynomials for any degree using primpoly(m) function.

Example:

m= 4; Define m = 4 for GF(24)

s = primpoly(m)

Output is:

Primitive polynomial(s) =

D^4+D^1+1

s =

19

Here it shows the primitive polynomial and an integer whose binary representation indicates the coefficients of the polynomial. Note that there could be more than one primitive polynomial for a particular degree of m.

Galois Field arithmetic:

To demonstrate Galois Field arithmetic we consider following table for degree m = 4 an primitive polynomial p(X) = 1 + X + X4

Power Representation Polynomial Represent4-Tuple Representation

0 0 0 0 0 0

1 1 1 0 0 0

αα0 1 0 0

α2 α20 0 1 0

α3 α30 0 0 1

α4 1+ α 1 1 0 0

α5 α + α2 0 1 1 0

α6 α2 + α30 0 1 1

α7 1+ α + α3 1 1 0 1

α8 1 + α2 1 0 1 0

α9 α + α30 1 0 1

α10 1+ α + α2 1 1 1 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值