Exemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     GF5           = new FiniteField(5);
     GF56Primitive = new Polynomial(GF5, 2, 0, 1, 4, 1, 0, 1);
     ExtF          = new ExtensionField(GF56Primitive);
     lblInfo.Text  = "Current Field Info: " + ExtF.ToString();
 }
Exemplo n.º 2
0
 private void btnInfo_Click(object sender, EventArgs e)
 {
     txtInfo.Clear();
     txtInfo.AppendText("Extension Field = " + ExtF.ToString() + "\r\n");
     txtInfo.AppendText("Base Field = " + ExtF.DefiningPolynomial.Field.ToString() + "\r\n");
     txtInfo.AppendText("Defining Polynomial = " + ExtF.DefiningPolynomial.ToString() + "\r\n");
     txtInfo.AppendText("[Extension Field : Base Field] = " + ExtF.DefiningPolynomial.Degree.ToString() + "\r\n");
     txtInfo.AppendText("Order = " + ExtF.Order.ToString() + "\r\n\r\n");
 }