コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SetParameters1();

            var points = new RungeKuttaMethod(parameters).Count1();

            DrawGraph(chart1, points, String.Format("λАЗ1 = {0}\nλПЗ1 = {1}\nλАЗ2 = {2}", parameters.LambdaAZ1, parameters.LambdaPZ1, parameters.LambdaAZ2));

            textBox1.Text = Math.Round(parameters.Result, 3).ToString();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            SetParameters2();

            var points = new RungeKuttaMethod(parameters).Count2();

            DrawGraph1(chart2, points, String.Format("μАЗ1 = {0}\nμПЗ1 = {1}\nμАЗ2 = {2}", parameters.MuAZ1, parameters.MuPZ1, parameters.MuAZ2));

            textBox20.Text = Math.Round(parameters.Result / 100, 3).ToString();
        }