public void Polynoms() { RealFunc f = (double x) => 1.0 / (1.0 + x * x); double a = -9, b = 5; using (StreamWriter fs = new StreamWriter("Runge.txt")) { for (int i = 1; i < 30; i++) { Polynom p = Polynom.Lag(f, i - 1, a, b); fs.WriteLine($"{i} {FuncMethods.RealFuncMethods.NormDistanceС(f,p.Value,a,b)} {FuncMethods.RealFuncMethods.NormDistance(f, p.Value, a, b)}"); } } }