public static IEnumerable <double> DerivativeApproximations(double h0, Func <double, double> function, double number) { return(MyMath.Repeat(Halve, h0).Select(h => EasyDiff(function, number, h))); }
public static double Square(double number, double startApproximation, double eps) { double NextApproximation(double startApprox) => GetNextApproximation(number, startApprox); return(MyMath.Within(eps, MyMath.Repeat(NextApproximation, startApproximation))); }