Esempio n. 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            A = new ComplexNum((float)numericUpDown1.Value, (float)numericUpDown2.Value, (int)numericUpDown9.Value);
            B = new ComplexNum((float)numericUpDown3.Value, (float)numericUpDown4.Value, (int)numericUpDown10.Value);
            C = new ComplexNum((float)numericUpDown5.Value, (float)numericUpDown6.Value, (int)numericUpDown11.Value);
            D = new ComplexNum((float)numericUpDown7.Value, (float)numericUpDown8.Value, (int)numericUpDown12.Value);

            X = ((A + B) * C * C) / (B - A);

            textBox1.Text = X.getCN();
        }
Esempio n. 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     D             = new ComplexNum((float)numericUpDown7.Value, (float)numericUpDown8.Value, (int)numericUpDown12.Value);
     textBox1.Text = D.getCN();
 }
Esempio n. 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     B             = new ComplexNum((float)numericUpDown3.Value, (float)numericUpDown4.Value, (int)numericUpDown10.Value);
     textBox1.Text = B.getCN();
 }
Esempio n. 4
0
 private void button3_Click(object sender, EventArgs e)
 {
     C             = new ComplexNum((float)numericUpDown5.Value, (float)numericUpDown6.Value, (int)numericUpDown11.Value);
     textBox1.Text = C.getCN();
 }
Esempio n. 5
0
 private void button1_Click(object sender, EventArgs e)
 {
     A             = new ComplexNum((float)numericUpDown1.Value, (float)numericUpDown2.Value, (int)numericUpDown9.Value);
     textBox1.Text = A.getCN();
 }