Code:
double[] x = new double[] { 1, 1, 1, 1 };
alglib.complex[] f;
double[] x2;
alglib.fftr1d(x, out f);
// System.Console.WriteLine("{0}", alglib.ap.format(f, 3)); // EXPECTED: [4,0,0,0]
textBox_info_main.Text += "FF " + alglib.ap.format(f, 3) + Environment.NewLine; // EXPECTED: FF {4.000+0.000i,0.000+0.000i,0.000-0.000i,0.000+0.000i}
for (int i = 0; i < f.Length; i++)
{
textBox_info_main.Text += "FI " + f[i] + Environment.NewLine; //EXPECTED: FI alglib+complex
}
how convert f[i] "alglib+complex" in double?