public static void airy_cai_values_test() //****************************************************************************80 // // Purpose: // // AIRY_CAI_VALUES_TEST tests AIRY_CAI_VALUES. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 13 April 2007 // // Author: // // John Burkardt // { Complex cai = new(); Complex x = new(); Console.WriteLine(""); Console.WriteLine("AIRY_CAI_VALUES_TEST:"); Console.WriteLine(" AIRY_CAI_VALUES stores values of "); Console.WriteLine(" the Airy functions Ai(X) for complex argument."); Console.WriteLine(""); Console.WriteLine(" X Ai"); Console.WriteLine(""); int n_data = 0; for (;;) { Airy.airy_cai_values(ref n_data, ref x, ref cai); if (n_data == 0) { break; } Console.WriteLine(" " + x.Real.ToString("0.######").PadLeft(14) + " " + x.Imaginary.ToString("0.######").PadLeft(14) + " " + cai.Real.ToString("0.################").PadLeft(24) + " " + cai.Imaginary.ToString("0.################").PadLeft(24) + ""); } }