示例#1
0
文件: Data.cs 项目: adduxa/compMath
 public Data(string name, Func<double, double, double> func, EulersMethod em, NewtonInterpolation interpolation)
 {
     Name = name;
     _func = func;
     _em = em;
     _interpolation = interpolation;
 }
示例#2
0
        private static void Main()
        {
            var ni = new NewtonInterpolation();
            var em = new EulersMethod();

            DataList = new List<Data>();
            DataList.Add(new Data("y' = cos y + 3x", (x, y) => Math.Cos(y) + 3*x, em, ni));
            DataList.Add(new Data("y'=sinx", (x, y) => Math.Sin(x), em, ni));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }