//Инициализация экземпляра класса NumericSolver public void InitNumericSolver() { diffEq = new SODE(); Console.WriteLine("Внимание! Используйте только функции с берущимся интегралом."); diffEq.InitSODE(); Object[] param = diffEq.GetParams(); stepsNumber = (int)param[1]; step = (double)param[2]; equasionCount = (int)param[3]; startValues = (Dictionary <string, FloatingPoint>)param[4]; }
private static void TestRungeKuttaSystem() { SODE sode = new SODE(); sode.InitSODE(); List <Dictionary <string, FloatingPoint> > a_Points = sode.GetFunctionsSolutionApproximation(); List <Dictionary <string, FloatingPoint> > s_Points = sode.GetFunctionsAccurateSolution(); Console.WriteLine(sode.ToString()); DrawGraphics(a_Points, s_Points); Console.ReadLine(); }