Esempio n. 1
0
 private void SecondGraphDisplay()
 {
     for (int i = 0; i < 5; i++)
     {
         FirstFunctionChart.Series[i].Points.Clear();
         FirstFunctionChart.Series[i].Name = "φ" + (i + 1).ToString() + ": " + Math.Round(fijs[i], 5).ToString();
     }
     for (int n = 0; n < 3 * N; n++)
     {
         FirstFunctionChart.Series[0].Points.AddXY(n, SecondFunction(n));
     }
     FirstFunctionChart.Refresh();
 }
Esempio n. 2
0
 private void FFC()
 {
     for (int i = 0; i < 5; i++)
     {
         FirstFunctionChart.Series[i].Points.Clear();
         FirstFunctionChart.Series[i].Name = "A" + (i + 1).ToString() + ": " + Math.Round((double)As[i], 5).ToString();
         var A = As[i];
         for (int n = 0; n < N; n++)
         {
             FirstFunctionChart.Series[i].Points.AddXY(n, FirstFunctionC(A, n));
         }
     }
     FirstFunctionChart.Refresh();
 }
Esempio n. 3
0
 private void FFA()
 {
     for (int i = 0; i < 5; i++)
     {
         FirstFunctionChart.Series[i].Points.Clear();
         FirstFunctionChart.Series[i].Name = "φ" + (i + 1).ToString() + ": " + Math.Round(fis[i], 5).ToString();
         var fi = fis[i];
         for (int n = 0; n < N; n++)
         {
             FirstFunctionChart.Series[i].Points.AddXY(n, FirstFunctionA(fi, n));
         }
     }
     FirstFunctionChart.Refresh();
 }
Esempio n. 4
0
        private void ThirdGraphDisplay(int A, double f, double fi1, double fi2)
        {
            for (int i = 0; i < 5; i++)
            {
                FirstFunctionChart.Series[i].Points.Clear();
            }

            FirstFunctionChart.Series[0].Name = "A: " + A.ToString();
            FirstFunctionChart.Series[1].Name = "f: " + f.ToString();
            FirstFunctionChart.Series[3].Name = "φ1: " + fi1.ToString();
            FirstFunctionChart.Series[4].Name = "φ2: " + fi2.ToString();
            FirstFunctionChart.Series[2].Name = "";

            double[] fis = { fi1, fi2 };
            for (int n = 0; n < 3 * N; n++)
            {
                FirstFunctionChart.Series[2].Points.AddXY(n, MyFunction(A, f, fis, n));
            }
            FirstFunctionChart.Refresh();
        }