} (textBox1.Text == "" | | textBox3.Text == "" | | textBox4.Text == "" | | textBox5.Text == " ")
{. Show ("Не всі поля були заповнені!", "Помилка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
{= new Thread (new ThreadStart (delegate {Algoritm ();}));. Start ();
}
} void Algoritm ()
{B = Convert.ToDouble (textBox1.Text); R = Convert.ToDouble (textBox4.Text); t = Convert.ToDouble (textBox3.Text); M = 3; N = Convert. ToInt32 (textBox5.Text); kol = 0; j = 1; [] x = {1, 2}; [] y1 = new double [2]; [] y2 = new double [2]; [] y3 = new double [2]; [] ym = new double [2]; X = 0; Y1 = 0; Y2 = 0; Y3 = 0; Ym = 0; kor1 = 0; kor2 = 0; kor3 = 0; (" x0 = ("+ x [0] +"; "+ x [1] +") "); (" B = "+ B); (" M = "+ M) ; ("R =" + R); ("N =" + N); ("Покласти k = 0, j = 1"); [] v1 = new double [2]; [] v2 = new double [2]; [] v3 = new double [2]; n = 0;: (n == 10)
{[0] = -0.111; [1] = -0.388; [0] = 0.227; [1] = 0.931; [0] = 0.929; [1] = 0.17; = 0;
} (n == 9)
{[0] = -0.235; [1] = -0.331; [0] = 0.722; [1] = 0.999; [0] = 0.989; [1] = 0.07; + +;
} (n == 8)
{[0] = 0.1; [1] = 0.999; [0] = 0.932; [1] = 0.459; [0] = -0.519; [1] = -0.204; + +;
} (n == 7)
{[0] = 0.374; [1] = 0.451; [0] = -0.899; [1] = -0.129; [0] = -0.12; [1] = 0.921; + + ;
} (n == 6)
{[0] = -0.593; [1] = 0.741; [0] = 0.888; [1] = 0.011; [0] = -0.333; [1] = -0.296; + + ;
} (n == 5)
{[0] = -0.07; [1] = -0.971; [0] = 0.507; [1] = 0.537; [0] = 0.909; [1] = 0.022; + +;
} (n == 4)
{[0] = 0.507; [1] = 0.537; [0] = -0.587; [1] = 0.461; [0] = 0.911; [1] = 0.018; + +;
} (n == 3)
{[0] = 0.05; [1] = 0.171; [0] = 0.251; [1] = -0.447; [0] = -0.812; [1] = 0.102; + +;
} (n == 2)
{[0] = 0.674; [1] = 0.551; [0] = -0.824; [1] = -0.193; [0] = -0.08; [1] = 0.917; + + ;
} (n == 1)
{[0] = 0.168; [1] = -0.727; [0] = -0.478; [1] = -0.214; [0] = -0.361; [1] = 0.112; + +;
} (n == 0)
{[0] = 0.843; [1] = 0.374; 2 [0] = 0.239;
v2 [1] = 0.954;
v3 [0] = -0.159;
v3 [1] = -0.402;
n + +;
}
AText ("2) nСлучайние вектора дорівнюють:");
kor1 = Math.Sqrt ((Math.Pow (v1 [0], 2) + Math.Pow (v1 [1], 2))) ;//обчислень довжини век...