public Data(string name, Func<double, double, double> func, EulersMethod em, NewtonInterpolation interpolation) { Name = name; _func = func; _em = em; _interpolation = interpolation; }
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()); }