UNB ECE4253 Digital Communications
Department of Electrical and Computer Engineering - University of New Brunswick, Fredericton, NB, Canada

Galois Field GF(2) Calculator


Model C-172 POLYNOMIAL CALCULATOR

A:

B:

A + B A - B A × B A / B

Discussion  Polynomials  MATLAB

Answer: (multiplication)

   1100101
      1010
----------
1111100010

Detailed Calculation

The procedure for long multiplication is no different than for decimal numbers, except that modulo 2 addition must be used when computing the final sum.

   1100101
      1010
----------
  1100101 
1100101   
----------
1111100010

MATLAB Example

Calculations in GF(2) are performed by MATLAB functions found within the Communications Toolbox.

>> a = gf( [1 1 0 0 1 0 1] );

>> b = gf( [1 0 1 0] );

>> c = conv(a,b) % convolution is equivalent to polynomial multiplication

c = GF(2) array.

Array elements =

       1      1      1      1      1      0      0      0      1      0


2024-04-18 22:43:57 ADT
Last Updated: 2010-04-29
Richard Tervo [ tervo@unb.ca ] Back to the course homepage...