示例#1
0
        /// <summary>
        ///     The entry point for this example.  If you would like to make this example
        ///     stand alone, then add to its own project and rename to Main.
        /// </summary>
        /// <param name="args">Not used.</param>
        public static void ExampleMain(string[] args)
        {
            var prg = new FindEquation();

            if (args.Length == 0)
            {
                prg.Process(null);
            }
            else if (args.Length == 1)
            {
                prg.Process(args[0]);
            }
            else
            {
                Console.WriteLine("Specify a filename to fit, or no filename to use a built in simple polynomial.");
            }
        }
示例#2
0
 /// <summary>
 ///     The entry point for this example.  If you would like to make this example
 ///     stand alone, then add to its own project and rename to Main.
 /// </summary>
 /// <param name="args">Not used.</param>
 public static void ExampleMain(string[] args)
 {
     var prg = new FindEquation();
     if (args.Length == 0)
     {
         prg.Process(null);
     }
     else if (args.Length == 1)
     {
         prg.Process(args[0]);
     }
     else
     {
         Console.WriteLine("Specify a filename to fit, or no filename to use a built in simple polynomial.");
     }
 }